aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2018-05-06 02:50:54 +0200
committerLorenz Diener <[email protected]>2018-05-06 02:50:54 +0200
commit4b00c448f4a55859d5177c981a8fc4b388e8b5b3 (patch)
tree6ccfec5f72a32d258593dac531743e8653785af5 /tests/test_hooks.py
parentf8e209f6ff70d3be08b71b05f4cec753a9dac926 (diff)
downloadmastodon.py-4b00c448f4a55859d5177c981a8fc4b388e8b5b3.tar.gz
Add another bunch of tests
Diffstat (limited to 'tests/test_hooks.py')
-rw-r--r--tests/test_hooks.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_hooks.py b/tests/test_hooks.py
index c819d6e..f0139e5 100644
--- a/tests/test_hooks.py
+++ b/tests/test_hooks.py
@@ -29,3 +29,10 @@ def test_id_hook_within_reblog(api, status):
29@pytest.mark.vcr() 29@pytest.mark.vcr()
30def test_date_hook(status): 30def test_date_hook(status):
31 assert isinstance(status['created_at'], datetime) 31 assert isinstance(status['created_at'], datetime)
32
33@pytest.mark.vcr()
34def test_attribute_access(status):
35 assert status.id != None
36 with pytest.raises(AttributeError):
37 status.id = 420
38 \ No newline at end of file
Powered by cgit v1.2.3 (git 2.41.0)