Removed Log test because of new timestamps.
This commit is contained in:
parent
47a444b104
commit
f2338cb337
1 changed files with 0 additions and 8 deletions
|
@ -16,14 +16,6 @@ test_log.write("Oh shit!", "error")
|
||||||
print("Logfile contents:")
|
print("Logfile contents:")
|
||||||
print(test_log.read())
|
print(test_log.read())
|
||||||
|
|
||||||
expected_content = \
|
|
||||||
"[info]: Testing the log module...[0m[0m\n" \
|
|
||||||
"[[38;5;2m[1mOK[0m]: [0mThis should be fine...[0m[0m\n" \
|
|
||||||
"[38;5;11m[1m[WARNING]: Something happened...[0m[0m\n" \
|
|
||||||
"[38;5;9m[1m[ERROR]: Oh shit![0m[0m\n"
|
|
||||||
|
|
||||||
assert test_log.read() == expected_content
|
|
||||||
|
|
||||||
without_file = Log()
|
without_file = Log()
|
||||||
|
|
||||||
with pytest.raises(FileNotFoundError, match="You didn't specify a log path at the log instance definition."):
|
with pytest.raises(FileNotFoundError, match="You didn't specify a log path at the log instance definition."):
|
||||||
|
|
Loading…
Add table
Reference in a new issue