diff options
| author | Max Nanis | 2026-02-25 16:20:18 -0500 |
|---|---|---|
| committer | Max Nanis | 2026-02-25 16:20:18 -0500 |
| commit | 04aee0dc7e908ce020d2d2c3f8ffb4a96424b883 (patch) | |
| tree | efb99622da9a962a73921a945373c019f98e6273 /tests/http/test_basic.py | |
| parent | 8c1940445503fd6678d0961600f2be81622793a2 (diff) | |
| download | amt-jb-04aee0dc7e908ce020d2d2c3f8ffb4a96424b883.tar.gz amt-jb-04aee0dc7e908ce020d2d2c3f8ffb4a96424b883.zip | |
test_notification (for sns mgmt), along with more type hinting on pytest conftest
Diffstat (limited to 'tests/http/test_basic.py')
| -rw-r--r-- | tests/http/test_basic.py | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/tests/http/test_basic.py b/tests/http/test_basic.py index 18359da..e806fa9 100644 --- a/tests/http/test_basic.py +++ b/tests/http/test_basic.py @@ -2,23 +2,24 @@ import pytest from httpx import AsyncClient -@pytest.mark.anyio -async def test_base(httpxclient: AsyncClient): - client = httpxclient - res = await client.get("/") - # actually returns 404. old test expects 401. idk what is should be - print(res.text) - # assert res.status_code == 404 - assert res.status_code == 200 +class TestBase: + @pytest.mark.anyio + async def test_base(self, httpxclient: AsyncClient): + client = httpxclient + res = await client.get("/") + # actually returns 404. old test expects 401. idk what is should be + print(res.text) + # assert res.status_code == 404 + assert res.status_code == 200 -@pytest.mark.anyio -async def test_static_file_alias(httpxclient: AsyncClient): - client = httpxclient - """ - These are here for site crawlers and stuff.. - """ - for p in ["/robots.txt", "/sitemap.xml", "/favicon.ico"]: - res = await client.get(p) - assert res.status_code == 200, p - assert res.json() == {} + @pytest.mark.anyio + async def test_static_file_alias(self, httpxclient: AsyncClient): + client = httpxclient + """ + These are here for site crawlers and stuff.. + """ + for p in ["/robots.txt", "/sitemap.xml", "/favicon.ico"]: + res = await client.get(p) + assert res.status_code == 200, p + assert res.json() == {} |
