agreeable-thailand-43234
04/19/2022, 3:19 AMsisense_mces_golden.json
with the output of a dashboard + charts
in the test_sisense.py file i've replaced the mapping json variable as well as changing all the metabase reference for sisense directories, values
when running pytest i've got the following error
File "/Users/edgar.valdez/Documents/datahub/metadata-ingestion/venv/lib/python3.8/site-packages/coverage/config.py", line 563, in read_coverage_config
raise ConfigError(f"Couldn't read {fname!r} as a config file")
coverage.exceptions.ConfigError: Couldn't read 'setup.cfg' as a config file
could anybody please guide me through this last bit 🙂agreeable-thailand-43234
04/19/2022, 4:07 AMpip install -e '.[integration-tests]'
after running
pytest -m 'not integration and not slow_integration'
i've gotagreeable-thailand-43234
04/19/2022, 4:08 AMdazzling-judge-80093
04/19/2022, 7:59 AM--no-cov
option when you are running the tests as it can’t work well with setup.pyagreeable-thailand-43234
04/19/2022, 8:15 AMdazzling-judge-80093
04/19/2022, 8:15 AMagreeable-thailand-43234
04/19/2022, 8:20 AMagreeable-thailand-43234
04/19/2022, 8:20 AMdazzling-judge-80093
04/19/2022, 8:33 AMpytest -v tests/unit/test_bigquery_source.py
agreeable-thailand-43234
04/19/2022, 8:36 AMmetadata-ingestion/tests/integration/
agreeable-thailand-43234
04/19/2022, 8:36 AMmetadata-ingestion/tests/unit
dazzling-judge-80093
04/19/2022, 8:38 AMpytest -v tests/integration/hive/test_hive.py
agreeable-thailand-43234
04/19/2022, 8:41 AMagreeable-thailand-43234
04/19/2022, 8:41 AMagreeable-thailand-43234
04/19/2022, 8:42 AMdazzling-judge-80093
04/19/2022, 8:51 AMtest_
prefix otherwise it won’t runagreeable-thailand-43234
04/19/2022, 8:52 AMdazzling-judge-80093
04/19/2022, 9:10 AMdazzling-judge-80093
04/19/2022, 9:10 AMagreeable-thailand-43234
04/19/2022, 9:10 AMagreeable-thailand-43234
04/19/2022, 9:11 AMmetadata-ingestion
with the venv activateddazzling-judge-80093
04/19/2022, 9:11 AMagreeable-thailand-43234
04/19/2022, 9:12 AMagreeable-thailand-43234
04/19/2022, 9:12 AMJSON_RESPONSE_MAP = {
"<http://localhost:3000/api/v1/elasticubes/getElasticubes>": "datasets.json",
"<http://localhost:3000/api/v1/dashboards>": "dashboards.json",
"<http://localhost:3000/api/v1/dashboard/1/widgets>": "charts.json",
}
agreeable-thailand-43234
04/19/2022, 9:12 AMagreeable-thailand-43234
04/19/2022, 9:12 AMagreeable-thailand-43234
04/19/2022, 9:13 AMdazzling-judge-80093
04/19/2022, 9:13 AMagreeable-thailand-43234
04/19/2022, 9:13 AMagreeable-thailand-43234
04/19/2022, 9:14 AM"datahub.ingestion.source.sisense.requests.session",
agreeable-thailand-43234
04/19/2022, 9:14 AM"<http://datahub.ingestion.source.sisense.requests.post|datahub.ingestion.source.sisense.requests.post>",
agreeable-thailand-43234
04/19/2022, 9:14 AM"datahub.ingestion.source.sisense.requests.delete",
agreeable-thailand-43234
04/19/2022, 9:14 AMtest_resources_dir _=_ pytestconfig.rootpath _/_ "tests/integration/sisense"
agreeable-thailand-43234
04/19/2022, 9:15 AMpytestconfig.rootpath
is not showing anything if i do a print(pytestconfig.rootpath)agreeable-thailand-43234
04/19/2022, 9:15 AMpipeline = Pipeline.create(
{
"run_id": "sisense-test",
"source": {
"type": "sisense",
"config": {
"username": "xxxx",
"password": "xxxx",
"connect_uri": "<http://localhost:3000/>",
},
},
"sink": {
"type": "file",
"config": {"filename": f"{tmp_path}/sisense_mces.json",},
},
}
)
agreeable-thailand-43234
04/19/2022, 9:17 AMagreeable-thailand-43234
04/19/2022, 9:17 AMagreeable-thailand-43234
04/19/2022, 9:17 AMdazzling-judge-80093
04/19/2022, 9:17 AMagreeable-thailand-43234
04/19/2022, 9:21 AMagreeable-thailand-43234
04/19/2022, 9:21 AMagreeable-thailand-43234
04/19/2022, 9:22 AMagreeable-thailand-43234
04/19/2022, 9:22 AMdazzling-judge-80093
04/19/2022, 9:28 AMdazzling-judge-80093
04/19/2022, 9:28 AMagreeable-thailand-43234
04/19/2022, 9:28 AM