Hi, I ran 'python -m pytest -p integration_tests.a...
# help-connector-development
c
Hi, I ran 'python -m pytest -p integration_tests.acceptance' but encountered three errors. The first error is related to the 'conftest.py' file located in 'airbyte/airbyte-integrations/bases/source-acceptance-test/source_acceptance_test'. The second error is related to reading two sequential readings while running 'airbyte/airbyte-integrations/bases/source-acceptance-test/source_acceptance_test/tests/test_full_refresh.py'. The third error is that the key 'Error' is missing in 'airbyte/airbyte-integrations/bases/source-acceptance-test/source_acceptance_test/utils/connector_runner.py'. I hope you can assist me with these issues. Thank you
k
A message from kapa.ai
Hmm, I don't know enough to give you a confident answer yet. The information extracts provided do not contain the specific code snippets or details about the errors you mentioned. However, I can still provide you with some general guidance on running acceptance tests in Airbyte. To run acceptance tests for your connector, you can follow these steps: 1. Create or update the
acceptance-test-config.yml
file in your connector's root folder. [Source](https://docs.airbyte.com/connector-development/testing-connectors/connector-acceptance-tests-reference) 2. Build your connector image if needed. [Source](https://docs.airbyte.com/connector-development/testing-connectors/connector-acceptance-tests-reference) 3. Run the tests using one of the two scripts in the root of the connector: -
python -m pytest -p integration_tests.acceptance
-
./acceptance-test-docker.sh
[Source](https://docs.airbyte.com/connector-development/testing-connectors/connector-acceptance-tests-reference) If you encounter errors, you can debug failed tests by adding
--pdb --last-failed
to the
python -m pytest
command. [Source](https://docs.airbyte.com/connector-development/testing-connectors/connector-acceptance-tests-reference) For more information on testing connectors and troubleshooting, you can refer to the [Airbyte documentation](https://docs.airbyte.com/connector-development/testing-connectors).
c
The first error snippet is the next
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> captured log >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
WARNING rootconftest.py161 We did not find the airbyte/source-us-ak-dot:latest image for this connector. This probably means this version has not yet been published to an accessible docker registry like DockerHub. INFO rootconftest.py70 Using /airbyte/airbyte-integrations/connectors/source-us-ak-dot/secrets/config.json as configuration. It is the most recent version.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> traceback >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
connector_config = SecretDict(******), previous_connector_docker_runner = None, previous_cached_schemas = {} @pytest.fixture(name="previous_discovered_catalog") def previous_discovered_catalog_fixture( connector_config, previous_connector_docker_runner: ConnectorRunner, previous_cached_schemas ) -> MutableMapping[str, AirbyteStream]: """JSON schemas for each stream""" if not previous_cached_schemas:
output = previous_connector_docker_runner.call_discover(config=connector_config)
E AttributeError: 'NoneType' object has no attribute 'call_discover' ../../bases/source-acceptance-test/source_acceptance_test/conftest.py275 AttributeError