1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

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

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'],