Skip to content
Snippets Groups Projects
Commit 0620a2d9 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

Task #10811: fixed test

parent 7deb4379
No related branches found
No related tags found
No related merge requests found
......@@ -212,16 +212,13 @@ class ResourceAssignmentDatabaseTest(unittest.TestCase):
# triggers in place?
def test_insert_specification_swaps_startendtimes_if_needed(self):
#when inserting spec with start>endtime, should raise error
with self.assertRaises(psycopg2.InternalError) as context:
# insert spec
starttime = '2017-05-10 12:00:00'
endtime = '2017-05-10 10:00:00'
ident = self._insert_test_spec(starttime=starttime, endtime=endtime)
# check endtime in db is old starttime
query = "SELECT endtime FROM resource_allocation.specification WHERE id=%s" % ident
fetch = self._execute_query(query, fetch=True)
self.assertTrue(parser.parse(starttime) == fetch[0][0])
# notifications in place?
def test_insert_task_triggers_notification(self):
# insert specification to not raise INtegrityError
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment