mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2026-11-03 19:34:45 +00:00
Add landing install copy UX and document remaining security/test TODOs
This commit is contained in:
1 parent
0789dfcb55
commit
3ea37865cb
7 files changed
+181
-4
No files matched your search
@@ -9,6 +9,21 @@ sys.path.append(str(Path(__file__).resolve().parents[1]))
|
||||
from seedpass import api
|
||||
|
||||
|
||||
def test_get_pm_requires_initialized_state():
|
||||
class DummyState:
|
||||
pass
|
||||
|
||||
class DummyApp:
|
||||
state = DummyState()
|
||||
|
||||
class DummyRequest:
|
||||
app = DummyApp()
|
||||
|
||||
with pytest.raises(api.HTTPException) as exc:
|
||||
api._get_pm(DummyRequest())
|
||||
assert exc.value.status_code == 503
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_token_hashed(client):
|
||||
_, token = client
|
||||
|
||||
Reference in new issue
Block a user