Skip to content

Commit

Permalink
For #430: Review corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
paulodamaso committed Mar 11, 2019
1 parent 09d22bf commit db32739
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/view/tables/test_tables.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest

from http import HTTPStatus
from flask import g
from flask import g, url_for

from timeless.roles.models import RoleType
from tests import factories
Expand Down Expand Up @@ -30,10 +30,9 @@ def test_list(client):
session["user_id"] = employee.id
g.user = employee
factories.TableFactory(floor_id=floor.id, name="Table 01")
factories.TableFactory(floor_id=floor.id, name="Table 01")
factories.TableFactory(floor_id=floor.id, name="Table 01")
response = client.get("/tables/")
print(response.data)
factories.TableFactory(floor_id=floor.id, name="Table 02")
factories.TableFactory(floor_id=floor.id, name="Table 03")
response = client.get(url_for("/tables/"))
assert response.status_code == HTTPStatus.OK
assert b"<div><h1>Table 01</h1></div>" in response.data
assert b"<div><h1>Table 02</h1></div>" in response.data
Expand Down

0 comments on commit db32739

Please sign in to comment.