Skip to content

Commit

Permalink
Make integration test compatible with ERT 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
berland committed Aug 30, 2022
1 parent 335c2e8 commit 895007c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tests/jobs/csv_export2/test_integration.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# pylint: disable=unsubscriptable-object # pylint issue
import os
import subprocess
from pathlib import Path

import pandas as pd
import pytest
Expand Down Expand Up @@ -261,13 +262,10 @@ def test_ert_integration_errors(snapshot):
file_h.write("\n".join(ert_config))

subprocess.run(["ert", "test_run", ert_config_fname], check=True)
log_file = "ert-log"
for file in os.listdir():
if file.startswith(log_file):
log_file = file
break
with open(log_file) as fin:
ertlog = fin.read()

log_file = next(Path("logs").glob("ert-log*txt"))
ertlog = log_file.read_text(encoding="utf-8")

assert "No STATUS file" in ertlog
assert "realization-2/iter-0" in ertlog

Expand Down

0 comments on commit 895007c

Please sign in to comment.