Skip to content

Commit 2377dce

Browse files
committed
Missing an else
How? Re-running unit tests.
1 parent a1990c8 commit 2377dce

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,7 @@ build-local:
2020
cd dev-local ; make build-local ; cd ..
2121

2222
run-local:
23-
cd dev-local ; make run-local ; cd ..
23+
cd dev-local ; make run-local ; cd ..
24+
25+
exec-web:
26+
docker exec -it `docker ps -a --filter "name=.*web.*" --quiet` /bin/bash

apps/testclient/management/commands/create_test_user_and_application.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def create_test_token(user, application):
122122

123123
if AccessToken.objects.filter(token="sample-token-string").exists():
124124
t = AccessToken.objects.get(token="sample-token-string")
125-
125+
else:
126126
t = AccessToken.objects.create(user=user, application=application,
127127
token="sample-token-string",
128128
expires=expires,

0 commit comments

Comments
 (0)