diff options
author | nico <nico@magicbroccoli.de> | 2019-12-12 23:20:59 +0100 |
---|---|---|
committer | nico <nico@magicbroccoli.de> | 2019-12-12 23:20:59 +0100 |
commit | 6f19f160ef0d2d72c1db35abcf03ee28a3982d7c (patch) | |
tree | 6f30c630da4cf6c59198d9621fa0303b6b92e2a0 /tests | |
parent | cb84351270041449ee8a8984758e7e3ef86ea590 (diff) |
code fixup
+ add contextlib.suppress to further improve readability
- remove unnecessary return from if clause
* added back else case
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_group_assign.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test_group_assign.py b/tests/test_group_assign.py index 1f86574..c3529a0 100644 --- a/tests/test_group_assign.py +++ b/tests/test_group_assign.py @@ -19,9 +19,8 @@ creds = { class TestGroupAssigner: def test_missing_input(self): - """ - this should fail due to missing arguments - """ + # the main class is missing arguments and should fail with a TypeError + with pytest.raises(TypeError): GroupAssigner().start() |