diff options
author | Dashie <dashie@sigpipe.me> | 2019-12-18 10:29:57 +0100 |
---|---|---|
committer | Dashie <dashie@sigpipe.me> | 2019-12-18 10:29:57 +0100 |
commit | 57a4210ce077773ce3587660168c1bc9f0775b76 (patch) | |
tree | 5e2a21d09f23598b850dac2e5206cff209d4ad95 | |
parent | 04c816594aabecc0a88fdfc570fc9cdd735c096e (diff) |
Add TODO comments
-rw-r--r-- | api/tests/functional/test_api_account.py | 6 | ||||
-rw-r--r-- | api/tests/functional/test_api_albums.py | 1 | ||||
-rw-r--r-- | api/tests/functional/test_api_embed.py | 1 | ||||
-rw-r--r-- | api/tests/functional/test_api_oembed.py | 1 | ||||
-rw-r--r-- | api/tests/functional/test_api_tracks.py | 1 | ||||
-rw-r--r-- | api/tests/functional/test_api_v1_accounts.py | 15 | ||||
-rw-r--r-- | api/tests/functional/test_api_v1_ap.py | 3 | ||||
-rw-r--r-- | api/tests/functional/test_api_v1_timelines.py | 2 |
8 files changed, 30 insertions, 0 deletions
diff --git a/api/tests/functional/test_api_account.py b/api/tests/functional/test_api_account.py index 0af9cde9..60f6ab92 100644 --- a/api/tests/functional/test_api_account.py +++ b/api/tests/functional/test_api_account.py @@ -20,6 +20,9 @@ def test_logs(client, session): assert isinstance(items, list) +# TODO add a track to test logs content + + def test_quota(client, session): """ GET /api/users/<username>/quota @@ -32,3 +35,6 @@ def test_quota(client, session): assert isinstance(resp.json, dict) items = resp.json.get("items") assert isinstance(items, list) + + +# TODO add a track to test quota change diff --git a/api/tests/functional/test_api_albums.py b/api/tests/functional/test_api_albums.py index ac7bdc48..ffc2e9b4 100644 --- a/api/tests/functional/test_api_albums.py +++ b/api/tests/functional/test_api_albums.py @@ -3,6 +3,7 @@ controllers/api/albums.py """ """ +# TODO all of that POST /api/albums GET /api/albums/<username_or_id>/<albumslug> diff --git a/api/tests/functional/test_api_embed.py b/api/tests/functional/test_api_embed.py index 2d697586..7872f698 100644 --- a/api/tests/functional/test_api_embed.py +++ b/api/tests/functional/test_api_embed.py @@ -3,5 +3,6 @@ controllers/api/embed.py """ """ +# TODO GET /api/embed/<kind>/<id> """ diff --git a/api/tests/functional/test_api_oembed.py b/api/tests/functional/test_api_oembed.py index a0b84a83..a346195d 100644 --- a/api/tests/functional/test_api_oembed.py +++ b/api/tests/functional/test_api_oembed.py @@ -3,5 +3,6 @@ controllers/api/oembed.py """ """ +# TODO GET /api/oembed """ diff --git a/api/tests/functional/test_api_tracks.py b/api/tests/functional/test_api_tracks.py index be7160a7..aa408143 100644 --- a/api/tests/functional/test_api_tracks.py +++ b/api/tests/functional/test_api_tracks.py @@ -3,6 +3,7 @@ controllers/api/tracks.py """ """ +# TODO POST /api/tracks GET /api/tracks/<username_or_id>/<soundslug> diff --git a/api/tests/functional/test_api_v1_accounts.py b/api/tests/functional/test_api_v1_accounts.py index ccdbdbe0..df3c504c 100644 --- a/api/tests/functional/test_api_v1_accounts.py +++ b/api/tests/functional/test_api_v1_accounts.py @@ -37,6 +37,9 @@ def test_login_logout(client, session): assert logged_out +# Todo test invalid login + + def test_register_another_user(client, session): """ Register an user ll @@ -51,6 +54,9 @@ def test_register_another_user(client, session): assert user.active +# TODO test invalid registration + + def test_account_get_with_bearer(client, session): """ Get accounts @@ -66,6 +72,9 @@ def test_account_get_with_bearer(client, session): assert resp.json["acct"] == "testusera" +# TODO test account with wrong bearer + + def test_account_update_credentials_change_bio(client, session): """ Test updating account (change bio) @@ -142,6 +151,9 @@ def test_follow(client, session): assert rel["muting"] is False +# TODO test follow with wrong user + + def test_followers(client, session): """ Test followers list @@ -212,6 +224,9 @@ def test_unfollow(client, session): assert rel["muting"] is False +# TODO test unfollow with wrong user + + def test_account_delete(client, session): """ Test delete account diff --git a/api/tests/functional/test_api_v1_ap.py b/api/tests/functional/test_api_v1_ap.py index 7c945df5..97a6276b 100644 --- a/api/tests/functional/test_api_v1_ap.py +++ b/api/tests/functional/test_api_v1_ap.py @@ -20,6 +20,9 @@ def test_user_actor_json(client, session): assert resp.json["type"] == "Person" +# TODO test actor with wrong user + + def test_user_actor_json_tombstone(client, session): """ Test that we get a correct tombstone for deleted user diff --git a/api/tests/functional/test_api_v1_timelines.py b/api/tests/functional/test_api_v1_timelines.py index 749d68ca..fe3f0451 100644 --- a/api/tests/functional/test_api_v1_timelines.py +++ b/api/tests/functional/test_api_v1_timelines.py @@ -6,6 +6,8 @@ from models import User controllers/api/v1/timelines.py """ +# Long-term TODO: populate enough stuff to properly test pagination + def test_home(client, session): """ |