Skip to content

Commit eb1e578

Browse files
s0undt3chdwoz
authored andcommitted
Remove test for non existing function
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
1 parent 88b6e45 commit eb1e578

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

tests/pytests/functional/modules/test_mac_shadow.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,6 @@ def test_info(shadow, accounts):
4545
assert ret["name"] == ""
4646

4747

48-
def test_get_account_existing(shadow, accounts):
49-
"""
50-
Test shadow.get_account_existing
51-
"""
52-
# Correct Functionality
53-
text_date = shadow.get_account_existing(accounts.existing)
54-
assert text_date != "Invalid Timestamp"
55-
obj_date = datetime.datetime.strptime(text_date, "%Y-%m-%d %H:%M:%S")
56-
assert isinstance(obj_date, datetime.date)
57-
58-
# User does not exist
59-
with pytest.raises(CommandExecutionError) as exc:
60-
shadow.get_account_existing(accounts.non_existing)
61-
assert f"ERROR: User not found: {accounts.non_existing}" in str(exc.value)
62-
63-
6448
def test_get_last_change(shadow, accounts):
6549
"""
6650
Test shadow.get_last_change

0 commit comments

Comments
 (0)