still trying to fix a rogue test.
This commit is contained in:
parent
6adf1107fe
commit
635a112796
|
@ -1,4 +1,5 @@
|
|||
import logging
|
||||
import math
|
||||
import re
|
||||
from collections import OrderedDict
|
||||
from zipfile import BadZipFile
|
||||
|
@ -86,7 +87,7 @@ class LookupService(object):
|
|||
print(f"*** Comparing {timestamp} and {lookup_model.file_timestamp}")
|
||||
# Assures we have the same timestamp, as storage in the database might create slight variations in
|
||||
# the floating point values, just assure they values match to within a second.
|
||||
is_current = abs(timestamp - lookup_model.file_timestamp) == 0
|
||||
is_current = int(timestamp - lookup_model.file_timestamp) == 0
|
||||
|
||||
if not is_current:
|
||||
# Very very very expensive, but we don't know need this till we do.
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import os
|
||||
from time import sleep
|
||||
|
||||
from tests.base_test import BaseTest
|
||||
|
||||
|
@ -52,6 +53,7 @@ class TestLookupService(BaseTest):
|
|||
lookup_data = session.query(LookupDataModel).filter(LookupDataModel.lookup_file_model == lookup_record).all()
|
||||
self.assertEqual(28, len(lookup_data))
|
||||
|
||||
sleep(1)
|
||||
# Update the workflow specification file.
|
||||
file_path = os.path.join(app.root_path, '..', 'tests', 'data',
|
||||
'enum_options_with_search', 'sponsors_modified.xlsx')
|
||||
|
|
Loading…
Reference in New Issue