MCPcopy Create free account
hub / github.com/TimMcCool/scratchattach / test_auth

Function test_auth

tests/test_auth.py:7–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5
6
7def test_auth():
8 if not util.credentials_available():
9 warnings.warn("Skipped test_auth because there were no credentials available.")
10 return
11 sess = util.session()
12
13 assert "FERNET_KEY" in os.environ
14 assert len(os.environ["FERNET_KEY"]) == 32
15 assert sess.username == "ScratchAttachV2"

Callers

nothing calls this directly

Calls 1

sessionMethod · 0.80

Tested by

no test coverage detected