Skip to content

Commit

Permalink
Fixed failing tests in djnago and bad application pathing. Now all th…
Browse files Browse the repository at this point in the history
…e tests should pass.
  • Loading branch information
danalex97 committed Jul 19, 2017
1 parent 3a30ff4 commit 7eea1bc
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
Empty file removed __init__.py
Empty file.
Empty file removed aimmo-game-creator/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion all_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import sys

BASE_DIR = os.path.abspath(os.path.dirname(__file__))
APPS = ('', 'aimmo-game/', 'aimmo-game-worker/', 'aimmo-game-creator/')
APPS = ('', 'aimmo-game/', 'aimmo-game-worker/', 'aimmo-game-creator/', 'integration-tests/')

def print_help():
print(globals()['__docstring__'])
Expand Down
Empty file removed integration-tests/__init__.py
Empty file.
4 changes: 2 additions & 2 deletions players/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def _create_response(status, message):
@login_required
def code(request, id):
game = get_object_or_404(Game, id=id)
#if not game.can_user_play(request.user):
# raise Http404
if not game.can_user_play(request.user):
raise Http404
try:
avatar = game.avatar_set.get(owner=request.user)
except Avatar.DoesNotExist:
Expand Down

0 comments on commit 7eea1bc

Please sign in to comment.