Skip to content

Commit

Permalink
skip all other tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mbway committed Dec 30, 2023
1 parent cfa90db commit c93a6eb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/import_hook/test_rust_file_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def workspace(tmp_path: Path) -> Generator[Path, None, None]:
shutil.rmtree(tmp_path, ignore_errors=True)


@pytest.mark.skip()
def test_absolute_import(workspace: Path) -> None:
"""Test imports of the form `import ab.cd.ef`."""
_clear_build_cache()
Expand All @@ -67,6 +68,7 @@ def test_absolute_import(workspace: Path) -> None:
assert duration2 < duration1


@pytest.mark.skip()
def test_relative_import() -> None:
"""Test imports of the form `from .ab import cd`."""
_clear_build_cache()
Expand All @@ -84,6 +86,7 @@ def test_relative_import() -> None:
assert duration2 < duration1


@pytest.mark.skip()
def test_top_level_import(workspace: Path) -> None:
"""Test imports of the form `import ab`."""
_clear_build_cache()
Expand All @@ -103,6 +106,7 @@ def test_top_level_import(workspace: Path) -> None:
assert duration2 < duration1


@pytest.mark.skip()
def test_multiple_imports(workspace: Path) -> None:
"""Test importing the same rs file multiple times by different names in the same session."""
_clear_build_cache()
Expand Down Expand Up @@ -163,6 +167,7 @@ def test_concurrent_import() -> None:
assert num_waiting == 2


@pytest.mark.skip()
def test_rebuild_on_change(workspace: Path) -> None:
"""Test that modules are rebuilt if they are edited."""
_clear_build_cache()
Expand Down Expand Up @@ -191,6 +196,7 @@ def test_rebuild_on_change(workspace: Path) -> None:
assert "creating project for" in output2


@pytest.mark.skip()
def test_rebuild_on_settings_change(workspace: Path) -> None:
"""Test that modules are rebuilt if the settings (eg maturin flags) used by the import hook changes."""
_clear_build_cache()
Expand Down Expand Up @@ -226,6 +232,7 @@ def test_rebuild_on_settings_change(workspace: Path) -> None:
assert "SUCCESS" in output4


@pytest.mark.skip()
class TestLogging:
"""test the desired messages are visible to the user in the default logging configuration."""

Expand Down
2 changes: 2 additions & 0 deletions tests/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,7 @@ fn import_hook_project_importer() {
}

#[test]
#[ignore]
fn import_hook_project_importer_parallel() {
handle_result(import_hook::test_import_hook_parallel(
"import_hook_project_importer",
Expand Down Expand Up @@ -931,6 +932,7 @@ fn import_hook_rust_file_importer_parallel() {
}

#[test]
#[ignore]
fn import_hook_utilities() {
let tmpdir = tempfile::tempdir().unwrap();
let resolved_packages_path = tmpdir.path().join("resolved.json");
Expand Down

0 comments on commit c93a6eb

Please sign in to comment.