still trying to fix a rogue test.

This commit is contained in:
Dan 2022-02-18 10:41:24 -05:00
parent 6adf1107fe
commit 635a112796
2 changed files with 4 additions and 1 deletions

View File

@ -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.

View File

@ -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')