Skip to content

Commit 36a79e3

Browse files
committed
Move conditional skip
1 parent a473b29 commit 36a79e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/functional/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ def docker_compose_file() -> str:
2727
The fixture name must be docker_compose_file and return str.
2828
"""
2929

30+
if _running_in_travis_ci():
31+
pytest.skip('Docker hub reports rate limit errors on pulls from Travis CI servers')
32+
3033
return str(TEST_DIR.joinpath('docker-compose.yml'))
3134

3235

@@ -61,9 +64,6 @@ def _running_in_travis_ci() -> bool:
6164

6265
@pytest.fixture(scope='session')
6366
def ipfs_service_auth() -> ty.Tuple[str, str]:
64-
if _running_in_travis_ci():
65-
pytest.skip('Docker hub reports rate limit errors on pulls from Travis CI servers')
66-
6767
return 'TheUser', 'ThePassword'
6868

6969

0 commit comments

Comments
 (0)