New paste Repaste Download
============================= test session starts ==============================
platform linux -- Python 3.11.9, pytest-8.0.2, pluggy-1.5.0 -- /usr/local/bin/python3
cachedir: /tmp
rootdir: /scripts/pxq-tests
plugins: allure-pytest-2.13.2, django-4.8.0
collecting ... collected 18 items
scripts/pxq-tests/test_interpolation.py::TestClass::test_file_exists_electricity_interpolation PASSED
scripts/pxq-tests/test_interpolation.py::TestClass::test_file_exists_gas_interpolation PASSED
scripts/pxq-tests/test_interpolation.py::TestClass::test_file_exists_gas_start_date_interpolation PASSED
scripts/pxq-tests/test_interpolation.py::TestClass::test_file_exists_gas_end_date_interpolation PASSED
scripts/pxq-tests/test_interpolation.py::TestClass::test_validate_electricity_interpolation PASSED
scripts/pxq-tests/test_interpolation.py::TestClass::test_validate_gas_interpolation PASSED
scripts/pxq-tests/test_interpolation.py::TestClass::test_validate_gas_start_date_interpolation PASSED
scripts/pxq-tests/test_interpolation.py::TestClass::test_validate_gas_end_date_interpolation PASSED
scripts/pxq-tests/test_meter_changes.py::TestClass::test_validate_electricity_meter_changes PASSED
scripts/pxq-tests/test_meter_changes.py::TestClass::test_validate_gas_meter_changes PASSED
scripts/pxq-tests/test_negative_volumes.py::TestClass::test_validate_error_gas_negative_volumes ERROR
scripts/pxq-tests/test_negative_volumes.py::TestClass::test_validate_error_electricity_negative_volumes ERROR
scripts/pxq-tests/test_output.py::TestClass::test_file_exists_electricity PASSED
scripts/pxq-tests/test_output.py::TestClass::test_file_exists_gas PASSED
scripts/pxq-tests/test_output.py::TestClass::test_file_exists_gas_corrected PASSED
scripts/pxq-tests/test_output.py::TestClass::test_validate_output_json PASSED
scripts/pxq-tests/test_output.py::TestClass::test_validate_output_json_gas PASSED
scripts/pxq-tests/test_output.py::TestClass::test_validate_output_json_gas_corrected PASSED
==================================== ERRORS ====================================
_____ ERROR at setup of TestClass.test_validate_error_gas_negative_volumes _____
self = <test_negative_volumes.TestClass object at 0xffffb591f6d0>
filename_gas_negative_volumes = '/output/processed-event-93386112.json'
    @pytest.fixture
    def kafka_output_json_gas_negative_volumes(self, filename_gas_negative_volumes):
>       return read_json_file(filename_gas_negative_volumes)
scripts/pxq-tests/test_negative_volumes.py:22:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
filepath = '/output/processed-event-93386112.json'
    def read_json_file(filepath):
>       with open(filepath) as json_file:
E       FileNotFoundError: [Errno 2] No such file or directory: '/output/processed-event-93386112.json'
scripts/pxq-tests/support.py:5: FileNotFoundError
_ ERROR at setup of TestClass.test_validate_error_electricity_negative_volumes _
self = <test_negative_volumes.TestClass object at 0xffffb591eb90>
filename_electricity_negative_volumes = '/output/processed-event-29338611.json'
    @pytest.fixture
    def kafka_output_json_electricity_negative_volumes(self, filename_electricity_negative_volumes):
>       return read_json_file(filename_electricity_negative_volumes)
scripts/pxq-tests/test_negative_volumes.py:26:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
filepath = '/output/processed-event-29338611.json'
    def read_json_file(filepath):
>       with open(filepath) as json_file:
E       FileNotFoundError: [Errno 2] No such file or directory: '/output/processed-event-29338611.json'
scripts/pxq-tests/support.py:5: FileNotFoundError
---------------- generated xml file: /scripts/test_reports.xml -----------------
=========================== short test summary info ============================
ERROR scripts/pxq-tests/test_negative_volumes.py::TestClass::test_validate_error_gas_negative_volumes
ERROR scripts/pxq-tests/test_negative_volumes.py::TestClass::test_validate_error_electricity_negative_volumes
========================= 16 passed, 2 errors in 0.10s =========================
Filename: None. Size: 4kb. View raw, , hex, or download this file.

This paste expires on 2024-04-29 19:53:36.826676. Pasted through deprecated-web.