Refs #30111 -- Fixed test cleanup in postgres_tests/test_integration.py.

Fixed "ERROR: Step ‘Publish JUnit test result report’ failed: No test report
files were found. Configuration error?" on Jenkins because report files were
put in tests/postgres_tests.
This commit is contained in:
Tim Graham 2019-01-23 10:20:25 -05:00
parent bff748df3e
commit 2de7eb6f4d
1 changed files with 3 additions and 1 deletions

View File

@ -2,11 +2,13 @@ import os
import subprocess
import sys
from tests.postgres_tests import PostgreSQLSimpleTestCase
from . import PostgreSQLSimpleTestCase
class PostgresIntegrationTests(PostgreSQLSimpleTestCase):
def test_check(self):
old_cwd = os.getcwd()
self.addCleanup(lambda: os.chdir(old_cwd))
os.chdir(os.path.dirname(__file__))
result = subprocess.run(
[sys.executable, '-m', 'django', 'check', '--settings', 'integration_settings'],