Test if creating and starting, waiting for period (25 seconds), followed by stopping the (pre)calculation service results
Test if creating and starting, waiting for period (25 seconds), followed by stopping the (pre)calculation service results
in 'multiple day' of StationTimeline data for all stations.
in 'multiple day' of StationTimeline data for all stations.
It will test the scheduler with interval of 10 seconds, so three days should be calculated
It will test the scheduler with interval of 20 seconds, so three days should be calculated
"""
"""
# Import here otherwise you get
# Import here otherwise you get
# "django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings."
# "django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings."
...
@@ -138,34 +142,34 @@ class TestPreCalculationService(unittest.TestCase):
...
@@ -138,34 +142,34 @@ class TestPreCalculationService(unittest.TestCase):
Check that if the interval time < calculation time it does not lead to exception
Check that if the interval time < calculation time it does not lead to exception
Test if creating and starting, waiting for period (10 seconds), followed by stopping the (pre)calculation service results
Test if creating and starting, waiting for period (20 seconds), followed by stopping the (pre)calculation service results
in 'multiple day' of StationTimeline data for all stations.
in 'multiple day' of StationTimeline data for all stations.
It will test the scheduler with interval of 2 seconds, which smaller than ~6 seconds
It will test the scheduler with interval of 2 seconds, which smaller than ~6 seconds
Stopping after 10 seconds makes 2 days calculated
Stopping after 20 seconds should make 2 days calculated
"""
"""
# Import here otherwise you get
# Import here otherwise you get
# "django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings."
# "django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings."
...
@@ -174,26 +178,20 @@ class TestPreCalculationService(unittest.TestCase):
...
@@ -174,26 +178,20 @@ class TestPreCalculationService(unittest.TestCase):