Skip to content

Commit

Permalink
skip path fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
verbii-1 committed Jun 18, 2021
1 parent e720aa1 commit dd30656
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,13 +255,19 @@ def ds(request):


@pytest.fixture
def cat_path():
def cat_path(request):
# paths are only usable in local mode
if not _is_opt_true(request, LOCAL_OPT):
pytest.skip()
path = get_dummy_data_path("compressed_images")
return os.path.join(path, "cat.jpeg")


@pytest.fixture
def flower_path():
def flower_path(request):
# paths are only usable in local mode
if not _is_opt_true(request, LOCAL_OPT):
pytest.skip()
path = get_dummy_data_path("compressed_images")
return os.path.join(path, "flower.png")

Expand Down

0 comments on commit dd30656

Please sign in to comment.