File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 1717
1818setup (
1919 name = "octue" ,
20- version = "0.1.23 " , # Ensure all requirements files containing octue are updated, too (e.g. docs build).
20+ version = "0.1.24 " , # Ensure all requirements files containing octue are updated, too (e.g. docs build).
2121 py_modules = ["cli" ],
2222 install_requires = [
2323 "click>=7.1.2" ,
Original file line number Diff line number Diff line change 11import os
2- import unittest
3-
4- from octue .cloud .emulators import GoogleCloudStorageEmulatorTestResultModifier
52
63
74TESTS_DIR = os .path .dirname (__file__ )
85TEST_PROJECT_NAME = os .environ ["TEST_PROJECT_NAME" ]
96TEST_BUCKET_NAME = "octue-test-bucket"
10-
11- test_result_modifier = GoogleCloudStorageEmulatorTestResultModifier (default_bucket_name = TEST_BUCKET_NAME )
12- setattr (unittest .TestResult , "startTestRun" , test_result_modifier .startTestRun )
13- setattr (unittest .TestResult , "stopTestRun" , test_result_modifier .stopTestRun )
Original file line number Diff line number Diff line change 55import uuid
66from tempfile import TemporaryDirectory , gettempdir
77
8+ from octue .cloud .emulators import GoogleCloudStorageEmulatorTestResultModifier
89from octue .logging_handlers import apply_log_handler
910from octue .mixins import MixinBase , Pathable
1011from octue .resources import Datafile , Dataset , Manifest
12+ from tests import TEST_BUCKET_NAME
1113
1214
1315logger = logging .getLogger (__name__ )
@@ -23,6 +25,10 @@ class BaseTestCase(unittest.TestCase):
2325 - sets a path to the test data directory
2426 """
2527
28+ test_result_modifier = GoogleCloudStorageEmulatorTestResultModifier (default_bucket_name = TEST_BUCKET_NAME )
29+ setattr (unittest .TestResult , "startTestRun" , test_result_modifier .startTestRun )
30+ setattr (unittest .TestResult , "stopTestRun" , test_result_modifier .stopTestRun )
31+
2632 def setUp (self ):
2733 # Set up paths to the test data directory and to the app templates directory
2834 root_dir = os .path .dirname (os .path .abspath (__file__ ))
You can’t perform that action at this time.
0 commit comments