0
0
mirror of https://github.com/ihabunek/toot.git synced 2025-10-21 19:44:16 -04:00

Use http methods instead of requests directly

This commit is contained in:
Ivan Habunek
2017-12-30 16:30:35 +01:00
parent 20eaf86b56
commit 92d4dc745a
9 changed files with 237 additions and 195 deletions

View File

@@ -15,6 +15,7 @@ def test_register_app(monkeypatch):
assert app.client_secret == "cs"
monkeypatch.setattr(api, 'create_app', retval(app_data))
monkeypatch.setattr(api, 'get_instance', retval({"title": "foo", "version": "1"}))
monkeypatch.setattr(config, 'save_app', assert_app)
app = auth.register_app("foo.bar")