From 1810694e433262385076e2abfb86b2751b26aa55 Mon Sep 17 00:00:00 2001 From: xjules Date: Mon, 7 Feb 2022 13:47:57 +0100 Subject: [PATCH 1/2] Fix pytest.approx into a correct usage --- tests/test_welltest_dpds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_welltest_dpds.py b/tests/test_welltest_dpds.py index 634932407..73f299e8c 100644 --- a/tests/test_welltest_dpds.py +++ b/tests/test_welltest_dpds.py @@ -265,4 +265,4 @@ def test_to_csv(tmp_path): dframe = pd.read_csv("mock.csv", skipinitialspace=True) assert dframe["vec"].size == 4 - assert pytest.approx(dframe["vecb"].iloc[-1] == 100) + assert dframe["vecb"].iloc[-1] == pytest.approx(100) From 0f02d8c6939ab6be70d77cfd4021d8d2142f23f3 Mon Sep 17 00:00:00 2001 From: xjules Date: Mon, 7 Feb 2022 14:23:20 +0100 Subject: [PATCH 2/2] Pin black to 21.12b0 --- test_requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_requirements.txt b/test_requirements.txt index e52336266..30d0a2a19 100644 --- a/test_requirements.txt +++ b/test_requirements.txt @@ -1,4 +1,4 @@ -black>=20.8b0 +black==21.12b0 check-manifest flake8 isort