More and more fixes.

Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
This commit is contained in:
2021-10-04 15:46:00 -04:00
parent 459719c21e
commit ed93d324a8
4 changed files with 5 additions and 4 deletions

View File

@@ -78,7 +78,7 @@ def test_dict(dummyannotations: dict[str, typing.Any]) -> None:
def test_load(dummydict: base.DataDict, dummyobj: Dummy) -> None:
"""Validate that <data class>.load() works."""
result = Dummy.load(dummydict)
result: Dummy = Dummy.load(dummydict)
assert result == dummyobj

View File

@@ -1,4 +1,5 @@
"""Tests for validating the Settings object."""
import base64
import os
import pathlib
@@ -13,7 +14,7 @@ def example_settings() -> settings.Settings:
return settings.Settings(
creds=settings.CredentialSettings(
baseurl="http://nowhere.huh",
token=str(os.urandom(8), "utf-8"),
token=base64.b64encode(os.urandom(8)).decode("utf-8"),
),
)