Skip to content

Commit 7f63e7a

Browse files
committed
'SRZ' is the usual Blueshirt TLA
1 parent d0c031d commit 7f63e7a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

code_submitter/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ class FileBackend(BasicAuthBackend):
222222
"""
223223

224224
UNKNOWN_USER_MESSAGE = "Username or password is incorrect"
225-
BLUESHIRT_TEAM = 'SRX'
225+
BLUESHIRT_TEAM = 'SRZ'
226226

227227
def __init__(self, *, path: Union[str, Path]) -> None:
228228
with open(path) as f:

tests/fixtures/auth-file.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
ABC: password1
2-
SRX: bees
2+
SRZ: bees

tests/tests_auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def test_incorrect_password(self) -> None:
130130
self.assertEqual(e.exception.args[0], FileBackend.UNKNOWN_USER_MESSAGE)
131131

132132
def test_blueshirt(self) -> None:
133-
scopes, user = self.await_(self.backend.validate('SRX', 'bees'))
133+
scopes, user = self.await_(self.backend.validate('SRZ', 'bees'))
134134

135135
self.assertIsNone(user.team, "Wrong team for user")
136136
self.assertEqual('Blueshirt', user.username, "Wrong username for user")

0 commit comments

Comments
 (0)