[Tests] Fix various tests
add new fields to card tests; stop test_get_session from writing into prod db
This commit is contained in:
@@ -9,7 +9,7 @@ def test_check_access_with_valid_timetable(db_session):
|
||||
db_session.add(group)
|
||||
db_session.commit()
|
||||
|
||||
card = Card(key="test-key-123", group_id=group.id)
|
||||
card = Card(key="test-key-123", group_id=group.id, enabled=True, name="test_card", card_serial="00:00:00:00:00:00:00")
|
||||
db_session.add(card)
|
||||
|
||||
timetable = Timetable(
|
||||
@@ -36,7 +36,7 @@ def test_check_access_outside_hours(db_session):
|
||||
db_session.add(group)
|
||||
db_session.commit()
|
||||
|
||||
card = Card(key="test-key-123", group_id=group.id)
|
||||
card = Card(key="test-key-123", group_id=group.id, enabled=True, name="test_card", card_serial="00:00:00:00:00:00:00")
|
||||
db_session.add(card)
|
||||
|
||||
timetable = Timetable(
|
||||
|
||||
Reference in New Issue
Block a user