Private
Public Access
1
0
This commit is contained in:
2024-06-12 17:52:09 +02:00
parent 09a00f4ac6
commit 37389def6a
8 changed files with 34 additions and 13 deletions

View File

@@ -109,6 +109,20 @@ from rowers.opaque import encoder
import inspect
class MyTestCase(TestCase):
def setUp(self):
self.osm_mock = patch('something')
self.osm_mock.return_value = ""
super(MyTestCase, self).setUp()
self.osm_mock.start()
def tearDown(self):
super(MyTestCase, self).tearDown()
self.osm_mock.stop()
def get_random_file(filename='rowers/tests/testdata/testdata.csv',name=''):
frm = inspect.stack()[3]

View File

@@ -13,7 +13,7 @@ import rowers.courses as courses
import rowers.plannedsessions as plannedsessions
@override_settings(TESTING=True)
class VirtualEventViewTest(TestCase):
class VirtualEventViewTest(MyTestCase):
def setUp(self):
# Main User
self.u = UserFactory()

Binary file not shown.