From 1c3710e205036c0afe93d108a865352ad157616c Mon Sep 17 00:00:00 2001 From: Florian Spreckelsen <f.spreckelsen@indiscale.com> Date: Fri, 6 Dec 2024 16:27:35 +0100 Subject: [PATCH] STY: autopep8'd --- unittests/test_sss_helper.py | 2 ++ unittests/test_table_importer.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/unittests/test_sss_helper.py b/unittests/test_sss_helper.py index 8baab849..caaf49d4 100644 --- a/unittests/test_sss_helper.py +++ b/unittests/test_sss_helper.py @@ -86,6 +86,8 @@ def test_send_mail(): assert msg.get_content() == "hello!\n" # skip on windows (has no sendmail) + + @mark.skipif(platform.system() == "Windows", reason="no sendmail on Windows") def test_send_mail_error(): with raises(subprocess.CalledProcessError): diff --git a/unittests/test_table_importer.py b/unittests/test_table_importer.py index fc0d5f0e..c1336ee5 100644 --- a/unittests/test_table_importer.py +++ b/unittests/test_table_importer.py @@ -196,7 +196,7 @@ class TableImporterTest(unittest.TestCase): [5678, 1, 2.0, 3, 'yes']], columns=['a', 'b', 'c', 'float', 'd']) # wrong datatypes before - assert df["a"].dtype != pd.StringDtype + assert df["a"].dtype != pd.StringDtype assert df["float"].dtype != float # strict = False by default, so this shouldn't raise an error importer.check_datatype(df) -- GitLab