Skip to content

Commit

Permalink
PB-694: remove delay in serializer test setup.
Browse files Browse the repository at this point in the history
This was used to verify test flakiness is fixed. This is now done and there is
no point delaying these tests any more.
  • Loading branch information
adk-swisstopo committed Aug 14, 2024
1 parent d64cea7 commit 5359769
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions app/tests/tests_09/test_serializer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# pylint: disable=too-many-lines
import time

import logging
from collections import OrderedDict
Expand Down Expand Up @@ -48,7 +47,6 @@ class CollectionSerializationTestCase(StacBaseTransactionTestCase):
def setUp(self):
self.data_factory = Factory()
self.collection_created_after = utc_aware(datetime.now())
time.sleep(5)
self.collection = self.data_factory.create_collection_sample(db_create=True)
self.item = self.data_factory.create_item_sample(
collection=self.collection.model, db_create=True
Expand Down Expand Up @@ -147,7 +145,6 @@ class EmptyCollectionSerializationTestCase(StacBaseTransactionTestCase):
def setUp(self):
self.data_factory = Factory()
self.collection_created_after = utc_aware(datetime.now())
time.sleep(5)
self.collection = self.data_factory.create_collection_sample(db_create=True)
self.maxDiff = None # pylint: disable=invalid-name

Expand Down
3 changes: 0 additions & 3 deletions app/tests/tests_10/test_serializer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# pylint: disable=too-many-lines

import time
import logging
from collections import OrderedDict
from datetime import datetime
Expand Down Expand Up @@ -48,7 +47,6 @@ class CollectionSerializationTestCase(StacBaseTransactionTestCase):
def setUp(self):
self.data_factory = Factory()
self.collection_created_after = utc_aware(datetime.now())
time.sleep(5)
self.collection = self.data_factory.create_collection_sample(db_create=True)
self.item = self.data_factory.create_item_sample(
collection=self.collection.model, db_create=True
Expand Down Expand Up @@ -144,7 +142,6 @@ class EmptyCollectionSerializationTestCase(StacBaseTransactionTestCase):
def setUp(self):
self.data_factory = Factory()
self.collection_created_after = utc_aware(datetime.now())
time.sleep(5)
self.collection = self.data_factory.create_collection_sample(db_create=True)
self.maxDiff = None # pylint: disable=invalid-name

Expand Down

0 comments on commit 5359769

Please sign in to comment.