Skip to content

Commit

Permalink
wip: restore tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jacebrowning committed Apr 27, 2024
1 parent c36fc31 commit f927e70
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2

Expand Down
2 changes: 0 additions & 2 deletions gitman/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ def pytest_configure(config):
def pytest_runtest_setup(item):
"""Disable file storage during unit tests."""
if "integration" in item.keywords:
if os.name == "nt":
pytest.skip("Integration tests not supported on Windows")
if not os.getenv(ENV):
pytest.skip(REASON)
else:
Expand Down
6 changes: 0 additions & 6 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ def it_merges_sources(config):
)
) == True

@pytest.mark.skipif(os.name == "nt", reason="Test does not work on Windows")
def it_can_handle_missing_locked_sources(config):
config.datafile.text = strip(
"""
Expand Down Expand Up @@ -264,7 +263,6 @@ def it_should_not_overwrite_files(config_with_link):
with pytest.raises(RuntimeError):
gitman.install(depth=1)

@pytest.mark.skipif(os.name == "nt", reason="Test does not work on Windows")
def it_should_not_overwrite_non_empty_directories(config_with_link):
os.system("mkdir my_link")
os.system("touch mylink/my_link")
Expand Down Expand Up @@ -305,7 +303,6 @@ def it_should_create_links(config_with_links):
expect(os.listdir()).contains("gmd_3")
expect(os.listdir()).contains("gmd_4")

@pytest.mark.skipif(os.name == "nt", reason="Test does not work on Windows")
def it_should_not_overwrite_files(config_with_links):
os.system("touch gmd_3")

Expand Down Expand Up @@ -586,7 +583,6 @@ def it_deletes_dependencies_when_they_exist(config):

expect(os.path.exists(config.location)) == False

@pytest.mark.skipif(os.name == "nt", reason="Test does not work on Windows")
def it_should_not_fail_when_no_dependencies_exist(config):
expect(os.path.isdir(config.location)) == False

Expand Down Expand Up @@ -614,7 +610,6 @@ def it_deletes_dependencies_when_they_exist(config):

gitman.uninstall()

@pytest.mark.skipif(os.name == "nt", reason="Test does not work on Windows")
def it_should_not_fail_when_no_dependencies_exist(config):
expect(os.path.isdir(config.location)) == False

Expand Down Expand Up @@ -1169,7 +1164,6 @@ def git_changes(
"""
)

@pytest.mark.skipif(os.name == "nt", reason="Test does not work on Windows")
def it_merges_sources(config):
config.datafile.text = strip(
"""
Expand Down

0 comments on commit f927e70

Please sign in to comment.