Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
import tests: Run test_import_files in billing disabled mode.
Vishnu KS0a9e1140145c
diff --git a/zerver/tests/test_import_export.py b/zerver/tests/test_import_export.pyindex b2da7b8ed23..2e11deb986f 100644--- a/zerver/tests/test_import_export.py+++ b/zerver/tests/test_import_export.py@@ -991,9 +991,9 @@ class ImportExportTest(ZulipTestCase):self._export_realm(realm)- with patch('logging.info'):- do_import_realm(os.path.join(settings.TEST_WORKER_DIR, 'test-export'),- 'test-zulip')+ with self.settings(BILLING_ENABLED=False):+ with patch('logging.info'):+ do_import_realm(os.path.join(settings.TEST_WORKER_DIR, 'test-export'), 'test-zulip')imported_realm = Realm.objects.get(string_id='test-zulip')# Test attachments@@ -1053,9 +1053,9 @@ class ImportExportTest(ZulipTestCase):realm.refresh_from_db()self._export_realm(realm)- with patch('logging.info'):- do_import_realm(os.path.join(settings.TEST_WORKER_DIR, 'test-export'),- 'test-zulip')+ with self.settings(BILLING_ENABLED=False):+ with patch('logging.info'):+ do_import_realm(os.path.join(settings.TEST_WORKER_DIR, 'test-export'), 'test-zulip')imported_realm = Realm.objects.get(string_id='test-zulip')with open(get_test_image_file('img.png').name, 'rb') as f:test_image_data = f.read()