| ============================= 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 49 items
|
|
|
| scripts/pxq-tests/docker_tests/test_electricity_interpolation.py::TestClass::test_file_exists_electricity_interpolation FAILED
|
| scripts/pxq-tests/docker_tests/test_electricity_interpolation.py::TestClass::test_file_exists_electricity_start_date_no_readings FAILED
|
| scripts/pxq-tests/docker_tests/test_electricity_interpolation.py::TestClass::test_file_exists_electricity_end_date_no_readings FAILED
|
| scripts/pxq-tests/docker_tests/test_electricity_interpolation.py::TestClass::test_validate_elect_start_date_no_readings ERROR
|
| scripts/pxq-tests/docker_tests/test_electricity_interpolation.py::TestClass::test_validate_electricity_interpolation ERROR
|
| scripts/pxq-tests/docker_tests/test_electricity_interpolation.py::TestClass::test_validate_elect_end_date_no_readings ERROR
|
| scripts/pxq-tests/docker_tests/test_error_message_handling.py::TestClass::test_validate_error_electricity_missing_start_date ERROR
|
| scripts/pxq-tests/docker_tests/test_error_message_handling.py::TestClass::test_validate_error_electricity_missing_end_date ERROR
|
| scripts/pxq-tests/docker_tests/test_error_message_handling.py::TestClass::test_validate_error_electricity_missing_whole_price ERROR
|
| scripts/pxq-tests/docker_tests/test_error_message_handling.py::TestClass::test_validate_error_electricity_missing_connection_id ERROR
|
| scripts/pxq-tests/docker_tests/test_error_message_handling.py::TestClass::test_validate_error_gas_missing_start_date ERROR
|
| scripts/pxq-tests/docker_tests/test_error_message_handling.py::TestClass::test_validate_error_gas_connection_id ERROR
|
| scripts/pxq-tests/docker_tests/test_error_message_handling.py::TestClass::test_validate_error_gas_missing_end_date ERROR
|
| scripts/pxq-tests/docker_tests/test_error_message_handling.py::TestClass::test_validate_error_gas_missing_whole_price ERROR
|
| scripts/pxq-tests/docker_tests/test_error_message_handling.py::TestClass::test_validate_error_gas_missing_contract_info ERROR
|
| scripts/pxq-tests/docker_tests/test_error_message_handling.py::TestClass::test_validate_error_electricity_missing_contract_info ERROR
|
| scripts/pxq-tests/docker_tests/test_error_message_handling.py::TestClass::test_validate_error_gas_negative_volumes ERROR
|
| scripts/pxq-tests/docker_tests/test_error_message_handling.py::TestClass::test_validate_error_electricity_negative_volumes ERROR
|
| scripts/pxq-tests/docker_tests/test_gas_interpolation.py::TestClass::test_file_exists_gas_interpolation FAILED
|
| scripts/pxq-tests/docker_tests/test_gas_interpolation.py::TestClass::test_file_exists_gas_start_date_interpolation FAILED
|
| scripts/pxq-tests/docker_tests/test_gas_interpolation.py::TestClass::test_file_exists_gas_end_date_interpolation FAILED
|
| scripts/pxq-tests/docker_tests/test_gas_interpolation.py::TestClass::test_validate_gas_interpolation ERROR
|
| scripts/pxq-tests/docker_tests/test_gas_interpolation.py::TestClass::test_validate_gas_start_date_interpolation ERROR
|
| scripts/pxq-tests/docker_tests/test_gas_interpolation.py::TestClass::test_validate_gas_end_date_interpolation ERROR
|
| scripts/pxq-tests/docker_tests/test_output.py::TestClass::test_file_exists_electricity FAILED
|
| scripts/pxq-tests/docker_tests/test_output.py::TestClass::test_file_exists_gas FAILED
|
| scripts/pxq-tests/docker_tests/test_output.py::TestClass::test_file_exists_gas_corrected FAILED
|
| scripts/pxq-tests/docker_tests/test_output.py::TestClass::test_validate_output_json ERROR
|
| scripts/pxq-tests/docker_tests/test_output.py::TestClass::test_validate_output_json_gas ERROR
|
| scripts/pxq-tests/docker_tests/test_output.py::TestClass::test_validate_output_json_gas_corrected ERROR
|
| scripts/pxq-tests/test_enexis_meters.py::TestClass::test_validate_electricity_meter_turnovers ERROR
|
| scripts/pxq-tests/test_enexis_meters.py::TestClass::test_validate_elect_meter_turnovers_interpolation ERROR
|
| scripts/pxq-tests/test_meter_changes.py::TestClass::test_validate_electricity_meter_changes ERROR
|
| scripts/pxq-tests/test_meter_changes.py::TestClass::test_validate_gas_meter_changes ERROR
|
| scripts/pxq-tests/test_negative_volumes.py::TestClass::test_validate_error_gas_negative_volumes FAILED
|
| scripts/pxq-tests/test_negative_volumes.py::TestClass::test_validate_error_electricity_negative_volumes FAILED
|
| scripts/pxq-tests/test_recovery_price.py::TestClass::test_recovery_price PASSED
|
| scripts/pxq-tests/test_recovery_price.py::TestClass::test_recovery_price_future_dates PASSED
|
| scripts/pxq-tests/test_recovery_price.py::TestClass::test_recovery_price_more_than_two_days PASSED
|
| scripts/pxq-tests/test_recovery_price.py::TestClass::test_recovery_price_startdate_after_enddate PASSED
|
| scripts/pxq-tests/test_recovery_price.py::TestClass::test_recovery_price_validate_database_records PASSED
|
| scripts/pxq-tests/test_usage.py::TestClass::test_electricity_usage PASSED
|
| scripts/pxq-tests/test_usage.py::TestClass::test_electricity_usage_week PASSED
|
| scripts/pxq-tests/test_usage.py::TestClass::test_electricity_price PASSED
|
| scripts/pxq-tests/test_usage.py::TestClass::test_electricity_usage_month PASSED
|
| scripts/pxq-tests/test_usage.py::TestClass::test_gas_usage PASSED
|
| scripts/pxq-tests/test_usage.py::TestClass::test_gas_usage_week PASSED
|
| scripts/pxq-tests/test_usage.py::TestClass::test_gas_usage_month PASSED
|
| scripts/pxq-tests/test_usage.py::TestClass::test_gas_price PASSED
|
|
|
| ==================================== ERRORS ====================================
|
| ____ ERROR at setup of TestClass.test_validate_elect_start_date_no_readings ____
|
|
|
| self = <test_electricity_interpolation.TestClass object at 0x7f1df111c150>
|
| filename_elect_start_date_no_readings = '/output/processed-event-95537552.json'
|
|
|
| @pytest.fixture
|
| def kafka_output_json_electricity_start_date_no_readings(self, filename_elect_start_date_no_readings):
|
| > return read_json_file(filename_elect_start_date_no_readings)
|
|
|
| scripts/pxq-tests/docker_tests/test_electricity_interpolation.py:17:
|
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
| filepath = '/output/processed-event-95537552.json'
|
|
|
| def read_json_file(filepath):
|
| > with open(filepath) as json_file:
|
| E FileNotFoundError: [Errno 2] No such file or directory: '/output/processed-event-95537552.json'
|
|
|
| scripts/pxq-tests/docker_tests/support.py:5: FileNotFoundError
|
| _____ ERROR at setup of TestClass.test_validate_electricity_interpolation ______
|
|
|
| self = <test_electricity_interpolation.TestClass object at 0x7f1df111d390>
|
| filename_elect = '/output/processed-event-53755202.json'
|
|
|
| @pytest.fixture
|
| def kafka_output_json_electricity(self, filename_elect):
|
| > return read_json_file(filename_elect)
|
|
|
| scripts/pxq-tests/docker_tests/test_electricity_interpolation.py:29:
|
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
| filepath = '/output/processed-event-53755202.json'
|
|
|
| def read_json_file(filepath):
|
| > with open(filepath) as json_file:
|
| E FileNotFoundError: [Errno 2] No such file or directory: '/output/processed-event-53755202.json'
|
|
|
| scripts/pxq-tests/docker_tests/support.py:5: FileNotFoundError
|
| _____ ERROR at setup of TestClass.test_validate_elect_end_date_no_readings _____
|
|
|
| self = <test_electricity_interpolation.TestClass object at 0x7f1df111cc10>
|
| filename_elect_end_date_no_readings = '/output/processed-event-89553755.json'
|
|
|
| @pytest.fixture
|
| def kafka_output_json_electricity_end_date_no_readings(self, filename_elect_end_date_no_readings):
|
| > return read_json_file(filename_elect_end_date_no_readings)
|
|
|
| scripts/pxq-tests/docker_tests/test_electricity_interpolation.py:41:
|
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
| filepath = '/output/processed-event-89553755.json'
|
|
|
| def read_json_file(filepath):
|
| > with open(filepath) as json_file:
|
| E FileNotFoundError: [Errno 2] No such file or directory: '/output/processed-event-89553755.json'
|
|
|
| scripts/pxq-tests/docker_tests/support.py:5: FileNotFoundError
|
| _ ERROR at setup of TestClass.test_validate_error_electricity_missing_start_date _
|
|
|
| self = <test_error_message_handling.TestClass object at 0x7f1df1114a50>
|
| filename_electricity_missing_start_date = '/output/processed-event-55375520.json'
|
|
|
| @pytest.fixture
|
| def kafka_output_json_electricity_missing_start_date(self, filename_electricity_missing_start_date):
|
| > return read_json_file(filename_electricity_missing_start_date)
|
|
|
| scripts/pxq-tests/docker_tests/test_error_message_handling.py:62:
|
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
| filepath = '/output/processed-event-55375520.json'
|
|
|
| def read_json_file(filepath):
|
| > with open(filepath) as json_file:
|
| E FileNotFoundError: [Errno 2] No such file or directory: '/output/processed-event-55375520.json'
|
|
|
| scripts/pxq-tests/docker_tests/support.py:5: FileNotFoundError
|
| _ ERROR at setup of TestClass.test_validate_error_electricity_missing_end_date _
|
|
|
| self = <test_error_message_handling.TestClass object at 0x7f1df1116a90>
|
| filename_electricity_missing_end_date = '/output/processed-event-50239236.json'
|
|
|
| @pytest.fixture
|
| def kafka_output_json_electricity_missing_end_date(self, filename_electricity_missing_end_date):
|
| > return read_json_file(filename_electricity_missing_end_date)
|
|
|
| scripts/pxq-tests/docker_tests/test_error_message_handling.py:66:
|
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
| filepath = '/output/processed-event-50239236.json'
|
|
|
| def read_json_file(filepath):
|
| > with open(filepath) as json_file:
|
| E FileNotFoundError: [Errno 2] No such file or directory: '/output/processed-event-50239236.json'
|
|
|
| scripts/pxq-tests/docker_tests/support.py:5: FileNotFoundError
|
| _ ERROR at setup of TestClass.test_validate_error_electricity_missing_whole_price _
|
|
|
| self = <test_error_message_handling.TestClass object at 0x7f1df11152d0>
|
| filename_electricity_missing_whole_price = '/output/processed-event-40335743.json'
|
|
|
| @pytest.fixture
|
| def kafka_output_json_electricity_missing_whole_price(self, filename_electricity_missing_whole_price):
|
| > return read_json_file(filename_electricity_missing_whole_price)
|
|
|
| scripts/pxq-tests/docker_tests/test_error_message_handling.py:70:
|
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
| filepath = '/output/processed-event-40335743.json'
|
|
|
| def read_json_file(filepath):
|
| > with open(filepath) as json_file:
|
| E FileNotFoundError: [Errno 2] No such file or directory: '/output/processed-event-40335743.json'
|
|
|
| scripts/pxq-tests/docker_tests/support.py:5: FileNotFoundError
|
| _ ERROR at setup of TestClass.test_validate_error_electricity_missing_connection_id _
|
|
|
| self = <test_error_message_handling.TestClass object at 0x7f1df1116b10>
|
| filename_electricity_missing_connection_id = '/output/processed-event-40126473.json'
|
|
|
| @pytest.fixture
|
| def kafka_output_json_electricity_missing_connection_id(self, filename_electricity_missing_connection_id):
|
| > return read_json_file(filename_electricity_missing_connection_id)
|
|
|
| scripts/pxq-tests/docker_tests/test_error_message_handling.py:74:
|
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
| filepath = '/output/processed-event-40126473.json'
|
|
|
| def read_json_file(filepath):
|
| > with open(filepath) as json_file:
|
| E FileNotFoundError: [Errno 2] No such file or directory: '/output/processed-event-40126473.json'
|
|
|
| scripts/pxq-tests/docker_tests/support.py:5: FileNotFoundError
|
| ____ ERROR at setup of TestClass.test_validate_error_gas_missing_start_date ____
|
|
|
| self = <test_error_message_handling.TestClass object at 0x7f1df1117990>
|
| filename_gas_missing_start_date = '/output/processed-event-86112253.json'
|
|
|
| @pytest.fixture
|
| def kafka_output_json_gas_missing_start_date(self, filename_gas_missing_start_date):
|
| > return read_json_file(filename_gas_missing_start_date)
|
|
|
| scripts/pxq-tests/docker_tests/test_error_message_handling.py:82:
|
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
| filepath = '/output/processed-event-86112253.json'
|
|
|
| def read_json_file(filepath):
|
| > with open(filepath) as json_file:
|
| E FileNotFoundError: [Errno 2] No such file or directory: '/output/processed-event-86112253.json'
|
|
|
| scripts/pxq-tests/docker_tests/support.py:5: FileNotFoundError
|
| ______ ERROR at setup of TestClass.test_validate_error_gas_connection_id _______
|
|
|
| self = <test_error_message_handling.TestClass object at 0x7f1df1117b50>
|
| filename_gas_missing_connection_id = '/output/processed-event-33861122.json'
|
|
|
| @pytest.fixture
|
| def kafka_output_json_gas_missing_connection_id(self, filename_gas_missing_connection_id):
|
| > return read_json_file(filename_gas_missing_connection_id)
|
|
|
| scripts/pxq-tests/docker_tests/test_error_message_handling.py:78:
|
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
| filepath = '/output/processed-event-33861122.json'
|
|
|
| def read_json_file(filepath):
|
| > with open(filepath) as json_file:
|
| E FileNotFoundError: [Errno 2] No such file or directory: '/output/processed-event-33861122.json'
|
|
|
| scripts/pxq-tests/docker_tests/support.py:5: FileNotFoundError
|
| _____ ERROR at setup of TestClass.test_validate_error_gas_missing_end_date _____
|
|
|
| self = <test_error_message_handling.TestClass object at 0x7f1df11166d0>
|
| filename_gas_missing_end_date = '/output/processed-event-38611225.json'
|
|
|
| @pytest.fixture
|
| def kafka_output_json_gas_missing_end_date(self, filename_gas_missing_end_date):
|
| > return read_json_file(filename_gas_missing_end_date)
|
|
|
| scripts/pxq-tests/docker_tests/test_error_message_handling.py:86:
|
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
| filepath = '/output/processed-event-38611225.json'
|
|
|
| def read_json_file(filepath):
|
| > with open(filepath) as json_file:
|
| E FileNotFoundError: [Errno 2] No such file or directory: '/output/processed-event-38611225.json'
|
|
|
| scripts/pxq-tests/docker_tests/support.py:5: FileNotFoundError
|
| ___ ERROR at setup of TestClass.test_validate_error_gas_missing_whole_price ____
|
|
|
| self = <test_error_message_handling.TestClass object at 0x7f1df100fe10>
|
| filename_gas_missing_whole_price = '/output/processed-event-43386112.json'
|
|
|
| @pytest.fixture
|
| def kafka_output_json_gas_missing_whole_price(self, filename_gas_missing_whole_price):
|
| > return read_json_file(filename_gas_missing_whole_price)
|
|
|
| scripts/pxq-tests/docker_tests/test_error_message_handling.py:90:
|
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
| filepath = '/output/processed-event-43386112.json'
|
|
|
| def read_json_file(filepath):
|
| > with open(filepath) as json_file:
|
| E FileNotFoundError: [Errno 2] No such file or directory: '/output/processed-event-43386112.json'
|
|
|
| scripts/pxq-tests/docker_tests/support.py:5: FileNotFoundError
|
| __ ERROR at setup of TestClass.test_validate_error_gas_missing_contract_info ___
|
|
|
| self = <test_error_message_handling.TestClass object at 0x7f1df100fbd0>
|
| filename_gas_missing_contract_info = '/output/processed-event-74338611.json'
|
|
|
| @pytest.fixture
|
| def kafka_output_json_gas_missing_contract_info(self, filename_gas_missing_contract_info):
|
| > return read_json_file(filename_gas_missing_contract_info)
|
|
|
| scripts/pxq-tests/docker_tests/test_error_message_handling.py:94:
|
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
| filepath = '/output/processed-event-74338611.json'
|
|
|
| def read_json_file(filepath):
|
| > with open(filepath) as json_file:
|
| E FileNotFoundError: [Errno 2] No such file or directory: '/output/processed-event-74338611.json'
|
|
|
| scripts/pxq-tests/docker_tests/support.py:5: FileNotFoundError
|
| _ ERROR at setup of TestClass.test_validate_error_electricity_missing_contract_info _
|
|
|
| self = <test_error_message_handling.TestClass object at 0x7f1df100f050>
|
| filename_electricity_missing_contract_info = '/output/processed-event-19338611.json'
|
|
|
| @pytest.fixture
|
| def kafka_output_json_electricity_missing_contract_info(self, filename_electricity_missing_contract_info):
|
| > return read_json_file(filename_electricity_missing_contract_info)
|
|
|
| scripts/pxq-tests/docker_tests/test_error_message_handling.py:98:
|
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
| filepath = '/output/processed-event-19338611.json'
|
|
|
| def read_json_file(filepath):
|
| > with open(filepath) as json_file:
|
| E FileNotFoundError: [Errno 2] No such file or directory: '/output/processed-event-19338611.json'
|
|
|
| scripts/pxq-tests/docker_tests/support.py:5: FileNotFoundError
|
| _____ ERROR at setup of TestClass.test_validate_error_gas_negative_volumes _____
|
|
|
| self = <test_error_message_handling.TestClass object at 0x7f1df100e950>
|
| 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/docker_tests/test_error_message_handling.py:102:
|
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
| 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/docker_tests/support.py:5: FileNotFoundError
|
| _ ERROR at setup of TestClass.test_validate_error_electricity_negative_volumes _
|
|
|
| self = <test_error_message_handling.TestClass object at 0x7f1df100dc50>
|
| 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/docker_tests/test_error_message_handling.py:106:
|
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
| 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/docker_tests/support.py:5: FileNotFoundError
|
| _________ ERROR at setup of TestClass.test_validate_gas_interpolation __________
|
|
|
| self = <test_gas_interpolation.TestClass object at 0x7f1df114bd10>
|
| filename_gas = '/output/processed-event-22537552.json'
|
|
|
| @pytest.fixture
|
| def kafka_output_json_gas(self, filename_gas):
|
| > return read_json_file(filename_gas)
|
|
|
| scripts/pxq-tests/docker_tests/test_gas_interpolation.py:30:
|
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
| filepath = '/output/processed-event-22537552.json'
|
|
|
| def read_json_file(filepath):
|
| > with open(filepath) as json_file:
|
| E FileNotFoundError: [Errno 2] No such file or directory: '/output/processed-event-22537552.json'
|
|
|
| scripts/pxq-tests/docker_tests/support.py:5: FileNotFoundError
|
| ____ ERROR at setup of TestClass.test_validate_gas_start_date_interpolation ____
|
|
|
| self = <test_gas_interpolation.TestClass object at 0x7f1df1149750>
|
| filename_gas_start_date_no_readings = '/output/processed-event-12253755.json'
|
|
|
| @pytest.fixture
|
| def kafka_output_json_gas_start_date_no_readings(self, filename_gas_start_date_no_readings):
|
| > return read_json_file(filename_gas_start_date_no_readings)
|
|
|
| scripts/pxq-tests/docker_tests/test_gas_interpolation.py:34:
|
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
| filepath = '/output/processed-event-12253755.json'
|
|
|
| def read_json_file(filepath):
|
| > with open(filepath) as json_file:
|
| E FileNotFoundError: [Errno 2] No such file or directory: '/output/processed-event-12253755.json'
|
|
|
| scripts/pxq-tests/docker_tests/support.py:5: FileNotFoundError
|
| _____ ERROR at setup of TestClass.test_validate_gas_end_date_interpolation _____
|
|
|
| self = <test_gas_interpolation.TestClass object at 0x7f1df114ab50>
|
| filename_gas_end_date_no_readings = '/output/processed-event-11225375.json'
|
|
|
| @pytest.fixture
|
| def kafka_output_json_gas_end_date_no_readings(self, filename_gas_end_date_no_readings):
|
| > return read_json_file(filename_gas_end_date_no_readings)
|
|
|
| scripts/pxq-tests/docker_tests/test_gas_interpolation.py:38:
|
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
| filepath = '/output/processed-event-11225375.json'
|
|
|
| def read_json_file(filepath):
|
| > with open(filepath) as json_file:
|
| E FileNotFoundError: [Errno 2] No such file or directory: '/output/processed-event-11225375.json'
|
|
|
| scripts/pxq-tests/docker_tests/support.py:5: FileNotFoundError
|
| ____________ ERROR at setup of TestClass.test_validate_output_json _____________
|
|
|
| self = <test_output.TestClass object at 0x7f1df11de610>
|
| filename_elect = '/output/processed-event-40093248.json'
|
|
|
| @pytest.fixture
|
| def kafka_output_json_electricity(self, filename_elect):
|
| > with open(filename_elect) as json_file:
|
| E FileNotFoundError: [Errno 2] No such file or directory: '/output/processed-event-40093248.json'
|
|
|
| scripts/pxq-tests/docker_tests/test_output.py:35: FileNotFoundError
|
| __________ ERROR at setup of TestClass.test_validate_output_json_gas ___________
|
|
|
| self = <test_output.TestClass object at 0x7f1df11dd990>
|
| filename_gas = '/output/processed-event-19922630.json'
|
|
|
| @pytest.fixture
|
| def kafka_output_json_gas(self, filename_gas):
|
| > with open(filename_gas) as json_file:
|
| E FileNotFoundError: [Errno 2] No such file or directory: '/output/processed-event-19922630.json'
|
|
|
| scripts/pxq-tests/docker_tests/test_output.py:40: FileNotFoundError
|
| _____ ERROR at setup of TestClass.test_validate_output_json_gas_corrected ______
|
|
|
| self = <test_output.TestClass object at 0x7f1df11de490>
|
| filename_gas_corrected = '/output/processed-event-25375520.json'
|
|
|
| @pytest.fixture
|
| def kafka_output_json_gas_corrected(self, filename_gas_corrected):
|
| > with open(filename_gas_corrected) as json_file:
|
| E FileNotFoundError: [Errno 2] No such file or directory: '/output/processed-event-25375520.json'
|
|
|
| scripts/pxq-tests/docker_tests/test_output.py:45: FileNotFoundError
|
| ____ ERROR at setup of TestClass.test_validate_electricity_meter_turnovers _____
|
|
|
| self = <test_enexis_meters.TestClass object at 0x7f1df100cc10>
|
| file_electricity_meter_turnovers = '/output/processed-event-54839673.json'
|
|
|
| @pytest.fixture
|
| def kafka_output_json_elect_meter_turnovers(self, file_electricity_meter_turnovers):
|
| > return read_json_file(file_electricity_meter_turnovers)
|
|
|
| scripts/pxq-tests/test_enexis_meters.py:33:
|
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
| filepath = '/output/processed-event-54839673.json'
|
|
|
| def read_json_file(filepath):
|
| > with open(filepath) as json_file:
|
| E FileNotFoundError: [Errno 2] No such file or directory: '/output/processed-event-54839673.json'
|
|
|
| scripts/pxq-tests/test_enexis_meters.py:10: FileNotFoundError
|
| _ ERROR at setup of TestClass.test_validate_elect_meter_turnovers_interpolation _
|
|
|
| self = <test_enexis_meters.TestClass object at 0x7f1df100c090>
|
| file_electricity_meter_turnovers_interpolation = '/output/processed-event-54671706.json'
|
|
|
| @pytest.fixture
|
| def kafka_output_json_elect_meter_turnovers_interpolation(self, file_electricity_meter_turnovers_interpolation):
|
| > return read_json_file(file_electricity_meter_turnovers_interpolation)
|
|
|
| scripts/pxq-tests/test_enexis_meters.py:37:
|
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
| filepath = '/output/processed-event-54671706.json'
|
|
|
| def read_json_file(filepath):
|
| > with open(filepath) as json_file:
|
| E FileNotFoundError: [Errno 2] No such file or directory: '/output/processed-event-54671706.json'
|
|
|
| scripts/pxq-tests/test_enexis_meters.py:10: FileNotFoundError
|
| _____ ERROR at setup of TestClass.test_validate_electricity_meter_changes ______
|
|
|
| self = <test_meter_changes.TestClass object at 0x7f1df11dd350>
|
| filename_elect_meter_changes = '/output/processed-event-54674581.json'
|
|
|
| @pytest.fixture
|
| def kafka_output_json_elect_meter_changes(self, filename_elect_meter_changes):
|
| > return read_json_file(filename_elect_meter_changes)
|
|
|
| scripts/pxq-tests/test_meter_changes.py:38:
|
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
| filepath = '/output/processed-event-54674581.json'
|
|
|
| def read_json_file(filepath):
|
| > with open(filepath) as json_file:
|
| E FileNotFoundError: [Errno 2] No such file or directory: '/output/processed-event-54674581.json'
|
|
|
| scripts/pxq-tests/test_meter_changes.py:10: FileNotFoundError
|
| _________ ERROR at setup of TestClass.test_validate_gas_meter_changes __________
|
|
|
| self = <test_meter_changes.TestClass object at 0x7f1df11de410>
|
| filename_gas_meter_changes = '/output/processed-event-22007908.json'
|
|
|
| @pytest.fixture
|
| def kafka_output_json_gas_meter_changes(self, filename_gas_meter_changes):
|
| > return read_json_file(filename_gas_meter_changes)
|
|
|
| scripts/pxq-tests/test_meter_changes.py:34:
|
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
| filepath = '/output/processed-event-22007908.json'
|
|
|
| def read_json_file(filepath):
|
| > with open(filepath) as json_file:
|
| E FileNotFoundError: [Errno 2] No such file or directory: '/output/processed-event-22007908.json'
|
|
|
| scripts/pxq-tests/test_meter_changes.py:10: FileNotFoundError
|
| =================================== FAILURES ===================================
|
| _____________ TestClass.test_file_exists_electricity_interpolation _____________
|
|
|
| self = <test_electricity_interpolation.TestClass object at 0x7f1df174c850>
|
| filename_elect = '/output/processed-event-53755202.json'
|
|
|
| def test_file_exists_electricity_interpolation(self, filename_elect):
|
| > assert os.path.exists(filename_elect), "electricity output file does not exist."
|
| E AssertionError: electricity output file does not exist.
|
| E assert False
|
| E + where False = <function exists at 0x7f1df249b9c0>('/output/processed-event-53755202.json')
|
| E + where <function exists at 0x7f1df249b9c0> = <module 'posixpath' (frozen)>.exists
|
| E + where <module 'posixpath' (frozen)> = os.path
|
|
|
| scripts/pxq-tests/docker_tests/test_electricity_interpolation.py:48: AssertionError
|
| ________ TestClass.test_file_exists_electricity_start_date_no_readings _________
|
|
|
| self = <test_electricity_interpolation.TestClass object at 0x7f1df111fe50>
|
| filename_elect_start_date_no_readings = '/output/processed-event-95537552.json'
|
|
|
| def test_file_exists_electricity_start_date_no_readings(self, filename_elect_start_date_no_readings):
|
| > assert os.path.exists(filename_elect_start_date_no_readings), "electricity start date with no readings output file does not exist."
|
| E AssertionError: electricity start date with no readings output file does not exist.
|
| E assert False
|
| E + where False = <function exists at 0x7f1df249b9c0>('/output/processed-event-95537552.json')
|
| E + where <function exists at 0x7f1df249b9c0> = <module 'posixpath' (frozen)>.exists
|
| E + where <module 'posixpath' (frozen)> = os.path
|
|
|
| scripts/pxq-tests/docker_tests/test_electricity_interpolation.py:51: AssertionError
|
| _________ TestClass.test_file_exists_electricity_end_date_no_readings __________
|
|
|
| self = <test_electricity_interpolation.TestClass object at 0x7f1df111ccd0>
|
| filename_elect_end_date_no_readings = '/output/processed-event-89553755.json'
|
|
|
| def test_file_exists_electricity_end_date_no_readings(self, filename_elect_end_date_no_readings):
|
| > assert os.path.exists(filename_elect_end_date_no_readings), "electricity end date with no readings output file does not exist."
|
| E AssertionError: electricity end date with no readings output file does not exist.
|
| E assert False
|
| E + where False = <function exists at 0x7f1df249b9c0>('/output/processed-event-89553755.json')
|
| E + where <function exists at 0x7f1df249b9c0> = <module 'posixpath' (frozen)>.exists
|
| E + where <module 'posixpath' (frozen)> = os.path
|
|
|
| scripts/pxq-tests/docker_tests/test_electricity_interpolation.py:54: AssertionError
|
| _________________ TestClass.test_file_exists_gas_interpolation _________________
|
|
|
| self = <test_gas_interpolation.TestClass object at 0x7f1df11480d0>
|
| filename_gas = '/output/processed-event-22537552.json'
|
|
|
| def test_file_exists_gas_interpolation(self, filename_gas):
|
| > assert os.path.exists(filename_gas), "Gas output file does not exist."
|
| E AssertionError: Gas output file does not exist.
|
| E assert False
|
| E + where False = <function exists at 0x7f1df249b9c0>('/output/processed-event-22537552.json')
|
| E + where <function exists at 0x7f1df249b9c0> = <module 'posixpath' (frozen)>.exists
|
| E + where <module 'posixpath' (frozen)> = os.path
|
|
|
| scripts/pxq-tests/docker_tests/test_gas_interpolation.py:57: AssertionError
|
| ___________ TestClass.test_file_exists_gas_start_date_interpolation ____________
|
|
|
| self = <test_gas_interpolation.TestClass object at 0x7f1df1148450>
|
| filename_gas_start_date_no_readings = '/output/processed-event-12253755.json'
|
|
|
| def test_file_exists_gas_start_date_interpolation(self, filename_gas_start_date_no_readings):
|
| > assert os.path.exists(filename_gas_start_date_no_readings), "Gas start date interpolation output file does not exist."
|
| E AssertionError: Gas start date interpolation output file does not exist.
|
| E assert False
|
| E + where False = <function exists at 0x7f1df249b9c0>('/output/processed-event-12253755.json')
|
| E + where <function exists at 0x7f1df249b9c0> = <module 'posixpath' (frozen)>.exists
|
| E + where <module 'posixpath' (frozen)> = os.path
|
|
|
| scripts/pxq-tests/docker_tests/test_gas_interpolation.py:60: AssertionError
|
| ____________ TestClass.test_file_exists_gas_end_date_interpolation _____________
|
|
|
| self = <test_gas_interpolation.TestClass object at 0x7f1df1148ad0>
|
| filename_gas_end_date_no_readings = '/output/processed-event-11225375.json'
|
|
|
| def test_file_exists_gas_end_date_interpolation(self, filename_gas_end_date_no_readings):
|
| > assert os.path.exists(filename_gas_end_date_no_readings), "Gas end date interpolation output file does not exist."
|
| E AssertionError: Gas end date interpolation output file does not exist.
|
| E assert False
|
| E + where False = <function exists at 0x7f1df249b9c0>('/output/processed-event-11225375.json')
|
| E + where <function exists at 0x7f1df249b9c0> = <module 'posixpath' (frozen)>.exists
|
| E + where <module 'posixpath' (frozen)> = os.path
|
|
|
| scripts/pxq-tests/docker_tests/test_gas_interpolation.py:63: AssertionError
|
| ____________________ TestClass.test_file_exists_electricity ____________________
|
|
|
| self = <test_output.TestClass object at 0x7f1df11dc550>
|
| filename_elect = '/output/processed-event-40093248.json'
|
|
|
| def test_file_exists_electricity(self, filename_elect):
|
| > assert os.path.exists(filename_elect), "electricity output file does not exist."
|
| E AssertionError: electricity output file does not exist.
|
| E assert False
|
| E + where False = <function exists at 0x7f1df249b9c0>('/output/processed-event-40093248.json')
|
| E + where <function exists at 0x7f1df249b9c0> = <module 'posixpath' (frozen)>.exists
|
| E + where <module 'posixpath' (frozen)> = os.path
|
|
|
| scripts/pxq-tests/docker_tests/test_output.py:74: AssertionError
|
| ________________________ TestClass.test_file_exists_gas ________________________
|
|
|
| self = <test_output.TestClass object at 0x7f1df11dc2d0>
|
| filename_gas = '/output/processed-event-19922630.json'
|
|
|
| def test_file_exists_gas(self, filename_gas):
|
| > assert os.path.exists(filename_gas), "Gas output file does not exist."
|
| E AssertionError: Gas output file does not exist.
|
| E assert False
|
| E + where False = <function exists at 0x7f1df249b9c0>('/output/processed-event-19922630.json')
|
| E + where <function exists at 0x7f1df249b9c0> = <module 'posixpath' (frozen)>.exists
|
| E + where <module 'posixpath' (frozen)> = os.path
|
|
|
| scripts/pxq-tests/docker_tests/test_output.py:77: AssertionError
|
| ___________________ TestClass.test_file_exists_gas_corrected ___________________
|
|
|
| self = <test_output.TestClass object at 0x7f1df11dc690>
|
| filename_gas_corrected = '/output/processed-event-25375520.json'
|
|
|
| def test_file_exists_gas_corrected(self, filename_gas_corrected):
|
| > assert os.path.exists(filename_gas_corrected), "Gas temperature Corrected output file does not exist."
|
| E AssertionError: Gas temperature Corrected output file does not exist.
|
| E assert False
|
| E + where False = <function exists at 0x7f1df249b9c0>('/output/processed-event-25375520.json')
|
| E + where <function exists at 0x7f1df249b9c0> = <module 'posixpath' (frozen)>.exists
|
| E + where <module 'posixpath' (frozen)> = os.path
|
|
|
| scripts/pxq-tests/docker_tests/test_output.py:80: AssertionError
|
| ______________ TestClass.test_validate_error_gas_negative_volumes ______________
|
|
|
| self = <test_negative_volumes.TestClass object at 0x7f1df11de910>
|
|
|
| def test_validate_error_gas_negative_volumes(self):
|
| > response = read_from_postgres("select sub_status , flagged_reason from ds_dynamic_pricing_event_results where customer_id=93386112")
|
| E NameError: name 'read_from_postgres' is not defined
|
|
|
| scripts/pxq-tests/test_negative_volumes.py:11: NameError
|
| __________ TestClass.test_validate_error_electricity_negative_volumes __________
|
|
|
| self = <test_negative_volumes.TestClass object at 0x7f1df0fe6210>
|
|
|
| def test_validate_error_electricity_negative_volumes(self):
|
| > response = read_from_postgres("select sub_status , flagged_reason from ds_dynamic_pricing_event_results where customer_id=29338611")
|
| E NameError: name 'read_from_postgres' is not defined
|
|
|
| scripts/pxq-tests/test_negative_volumes.py:15: NameError
|
| ---------------- generated xml file: /scripts/test_reports.xml -----------------
|
| =========================== short test summary info ============================
|
| FAILED scripts/pxq-tests/docker_tests/test_electricity_interpolation.py::TestClass::test_file_exists_electricity_interpolation
|
| FAILED scripts/pxq-tests/docker_tests/test_electricity_interpolation.py::TestClass::test_file_exists_electricity_start_date_no_readings
|
| FAILED scripts/pxq-tests/docker_tests/test_electricity_interpolation.py::TestClass::test_file_exists_electricity_end_date_no_readings
|
| FAILED scripts/pxq-tests/docker_tests/test_gas_interpolation.py::TestClass::test_file_exists_gas_interpolation
|
| FAILED scripts/pxq-tests/docker_tests/test_gas_interpolation.py::TestClass::test_file_exists_gas_start_date_interpolation
|
| FAILED scripts/pxq-tests/docker_tests/test_gas_interpolation.py::TestClass::test_file_exists_gas_end_date_interpolation
|
| FAILED scripts/pxq-tests/docker_tests/test_output.py::TestClass::test_file_exists_electricity
|
| FAILED scripts/pxq-tests/docker_tests/test_output.py::TestClass::test_file_exists_gas
|
| FAILED scripts/pxq-tests/docker_tests/test_output.py::TestClass::test_file_exists_gas_corrected
|
| FAILED scripts/pxq-tests/test_negative_volumes.py::TestClass::test_validate_error_gas_negative_volumes
|
| FAILED scripts/pxq-tests/test_negative_volumes.py::TestClass::test_validate_error_electricity_negative_volumes
|
| ERROR scripts/pxq-tests/docker_tests/test_electricity_interpolation.py::TestClass::test_validate_elect_start_date_no_readings
|
| ERROR scripts/pxq-tests/docker_tests/test_electricity_interpolation.py::TestClass::test_validate_electricity_interpolation
|
| ERROR scripts/pxq-tests/docker_tests/test_electricity_interpolation.py::TestClass::test_validate_elect_end_date_no_readings
|
| ERROR scripts/pxq-tests/docker_tests/test_error_message_handling.py::TestClass::test_validate_error_electricity_missing_start_date
|
| ERROR scripts/pxq-tests/docker_tests/test_error_message_handling.py::TestClass::test_validate_error_electricity_missing_end_date
|
| ERROR scripts/pxq-tests/docker_tests/test_error_message_handling.py::TestClass::test_validate_error_electricity_missing_whole_price
|
| ERROR scripts/pxq-tests/docker_tests/test_error_message_handling.py::TestClass::test_validate_error_electricity_missing_connection_id
|
| ERROR scripts/pxq-tests/docker_tests/test_error_message_handling.py::TestClass::test_validate_error_gas_missing_start_date
|
| ERROR scripts/pxq-tests/docker_tests/test_error_message_handling.py::TestClass::test_validate_error_gas_connection_id
|
| ERROR scripts/pxq-tests/docker_tests/test_error_message_handling.py::TestClass::test_validate_error_gas_missing_end_date
|
| ERROR scripts/pxq-tests/docker_tests/test_error_message_handling.py::TestClass::test_validate_error_gas_missing_whole_price
|
| ERROR scripts/pxq-tests/docker_tests/test_error_message_handling.py::TestClass::test_validate_error_gas_missing_contract_info
|
| ERROR scripts/pxq-tests/docker_tests/test_error_message_handling.py::TestClass::test_validate_error_electricity_missing_contract_info
|
| ERROR scripts/pxq-tests/docker_tests/test_error_message_handling.py::TestClass::test_validate_error_gas_negative_volumes
|
| ERROR scripts/pxq-tests/docker_tests/test_error_message_handling.py::TestClass::test_validate_error_electricity_negative_volumes
|
| ERROR scripts/pxq-tests/docker_tests/test_gas_interpolation.py::TestClass::test_validate_gas_interpolation
|
| ERROR scripts/pxq-tests/docker_tests/test_gas_interpolation.py::TestClass::test_validate_gas_start_date_interpolation
|
| ERROR scripts/pxq-tests/docker_tests/test_gas_interpolation.py::TestClass::test_validate_gas_end_date_interpolation
|
| ERROR scripts/pxq-tests/docker_tests/test_output.py::TestClass::test_validate_output_json
|
| ERROR scripts/pxq-tests/docker_tests/test_output.py::TestClass::test_validate_output_json_gas
|
| ERROR scripts/pxq-tests/docker_tests/test_output.py::TestClass::test_validate_output_json_gas_corrected
|
| ERROR scripts/pxq-tests/test_enexis_meters.py::TestClass::test_validate_electricity_meter_turnovers
|
| ERROR scripts/pxq-tests/test_enexis_meters.py::TestClass::test_validate_elect_meter_turnovers_interpolation
|
| ERROR scripts/pxq-tests/test_meter_changes.py::TestClass::test_validate_electricity_meter_changes
|
| ERROR scripts/pxq-tests/test_meter_changes.py::TestClass::test_validate_gas_meter_changes
|
| =================== 11 failed, 13 passed, 25 errors in 5.92s ===================
|