diff --git a/.gitignore b/.gitignore index 5642fa5..231bba3 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,4 @@ .vscode/* .idea/* .github/* -tests/* \ No newline at end of file +.pytest_cache/* \ No newline at end of file diff --git a/main.py b/main.py index 6adf237..70d93cd 100644 --- a/main.py +++ b/main.py @@ -205,7 +205,8 @@ def __eq__(self, other): print(f"{Table(foo='bar', spam='eggs').dict = }") # {'foo': 'bar', 'spam': 'eggs'} exit(0) -if __name__ == "__main__": # Unit tests +# Unit tests +def test_Table(): assert True, "Test 0 failed!" assert repr(Table()) == "Table()", "Test 1 failed!" assert repr(Table(1, 2, 3)) == "Table([1, 2, 3])", "Test 2 failed!"