Skip to content

Commit

Permalink
test: flattentool leaks file descriptors OpenDataServices/flatten-too…
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Dec 1, 2022
1 parent 5458c1f commit deeadba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -934,6 +934,8 @@ def test_url_input_with_version(
),
],
)
# flattentool leaks file descriptors: https://github.com/OpenDataServices/flatten-tool/issues/412
@pytest.mark.filterwarnings("ignore:unclosed file <_io.BufferedReader name=:ResourceWarning")
def test_url_input_with_version_change(
server_url,
url_input_browser,
Expand Down
2 changes: 2 additions & 0 deletions tests/test_general.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@
NOT_FOUND_URL_EXT = "https://standard.open-contracting.org/latest/en/404.json"


# flattentool leaks file descriptors: https://github.com/OpenDataServices/flatten-tool/issues/412
@pytest.mark.filterwarnings("ignore:unclosed file <_io.BufferedReader name=:ResourceWarning")
def test_get_releases_aggregates():
assert get_releases_aggregates({}) == EMPTY_RELEASE_AGGREGATE
assert get_releases_aggregates({"releases": []}) == EMPTY_RELEASE_AGGREGATE
Expand Down
2 changes: 2 additions & 0 deletions tests/test_hypothesis.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ def test_explore_page(client, current_app, json_data):

@pytest.mark.django_db
@pytest.mark.parametrize("current_app", ["cove-ocds"])
# flattentool leaks file descriptors: https://github.com/OpenDataServices/flatten-tool/issues/412
@pytest.mark.filterwarnings("ignore:unclosed file <_io.:ResourceWarning")
@given(general_json)
@example(1)
@settings(max_examples=50, deadline=None, suppress_health_check=[HealthCheck.function_scoped_fixture])
Expand Down

0 comments on commit deeadba

Please sign in to comment.