Skip to content

Commit

Permalink
test: Force skipif to use bool
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Sep 15, 2024
1 parent c35c519 commit c0d3090
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def patch(text):
return text


excluded = ('.git', '.ve', '_static', 'build', 'fixtures', 'node_modules')
excluded = ('.git', '.ve', '.venv', '_static', 'build', 'fixtures', 'node_modules')
excluded_repo_name = (
# data-support extends and stores the release schema to, for example, unflatten data.
'data-support',
Expand Down Expand Up @@ -343,7 +343,7 @@ def include(path, name):
'Files are empty. See warnings below.')


@pytest.mark.skipif(os.getenv('OCDS_NOINDENT', ""), reason='skipped indentation')
@pytest.mark.skipif(bool(os.getenv('OCDS_NOINDENT', '')), reason='skipped indentation')
def test_indent():
def include(path, name):
# http://json-schema.org/draft-04/schema
Expand All @@ -354,7 +354,7 @@ def include(path, name):


def test_json_valid():
excluded = ('.git', '.ve', '_static', 'build', 'fixtures', 'node_modules')
excluded = ('.git', '.ve', '.venv', '_static', 'build', 'fixtures', 'node_modules')
warn_and_assert(get_invalid_json_files(excluded=excluded), '{0} is not valid JSON: {1}',
'JSON files are invalid. See warnings below.')

Expand Down

0 comments on commit c0d3090

Please sign in to comment.