Skip to content

Commit

Permalink
Apply pre-commit fix
Browse files Browse the repository at this point in the history
From the artifact of the previous workflow run
  • Loading branch information
geo-ghci-int[bot] committed Feb 3, 2025
1 parent e658510 commit 73b6235
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 0 additions & 2 deletions acceptance_tests/tests/tests/test_index.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


def test_without_secret(app_connection):
content = app_connection.get("c2c", cors=False)
assert "Health checks" in content
Expand Down
16 changes: 10 additions & 6 deletions tests/acceptance/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@


def test_approx():
assert utils.approx(
{"a": 5.6, "b": [4.3], "c": {"d": 2.3}}, abs=0.1
) == {"a": 5.61, "b": [4.32], "c": {"d": 2.33}}
assert utils.approx({"a": 5.6, "b": [4.3], "c": {"d": 2.3}}, abs=0.1) == {
"a": 5.61,
"b": [4.32],
"c": {"d": 2.33},
}

assert utils.approx(
{"a": 5.6, "b": [4.3], "c": {"d": 2.3}}, abs=0.1
) != {"a": 5.61, "b": [4.32], "c": {"d": 2.5}}
assert utils.approx({"a": 5.6, "b": [4.3], "c": {"d": 2.3}}, abs=0.1) != {
"a": 5.61,
"b": [4.32],
"c": {"d": 2.5},
}

assert utils.approx(3.15, abs=0.02) == 3.14

0 comments on commit 73b6235

Please sign in to comment.