Skip to content
Snippets Groups Projects
Commit 13f8c0ec authored by lukas leufen's avatar lukas leufen
Browse files

changed name for CI test results (was naming duplication with standard python test folder)

parent f02f6f8f
No related branches found
No related tags found
2 merge requests!17update to v0.4.0,!16handle station type
Pipeline #26593 passed
......@@ -47,7 +47,7 @@ tests:
when: always
paths:
- badges/
- test/
- test_results/
coverage:
tags:
......@@ -90,7 +90,7 @@ pages:
- cp -af coverage/. public/coverage
- ls public/coverage
- mkdir -p public/test
- cp -af test/. public/test
- cp -af test_results/. public/test
- ls public/test
- ls public
when: always
......@@ -101,7 +101,7 @@ pages:
- public
- badges/
- coverage/
- test/
- test_results/
cache:
key: old-pages
paths:
......
......@@ -6,14 +6,14 @@ python3 -m pytest --html=report.html --self-contained-html test/ | tee test_resu
IS_FAILED=$?
# move html test report
mkdir test/
mkdir test_results/
BRANCH_NAME=$( echo -e "${CI_COMMIT_REF_NAME////_}")
mkdir test/${BRANCH_NAME}
mkdir test/recent
cp report.html test/${BRANCH_NAME}/.
cp report.html test/recent/.
mkdir test_results/${BRANCH_NAME}
mkdir test_results/recent
cp report.html test_results/${BRANCH_NAME}/.
cp report.html test_results/recent/.
if [[ "${CI_COMMIT_REF_NAME}" = "master" ]]; then
cp -r report.html test/.
cp -r report.html test_results/.
fi
# exit 0 if no tests implemented
......
......@@ -124,7 +124,7 @@ class DataPrep(object):
def __repr__(self):
return f"Dataprep(path='{self.path}', network='{self.network}', station={self.station}, " \
f"variables={self.variables}, station_type='{self.station_type}', **{self.kwargs})"
f"variables={self.variables}, station_type={self.station_type}, **{self.kwargs})"
def interpolate(self, dim: str, method: str = 'linear', limit: int = None,
use_coordinate: Union[bool, str] = True, **kwargs):
......
......@@ -38,7 +38,7 @@ class TestDataPrep:
d.station_type = "traffic"
d.kwargs = None
assert d.__repr__().rstrip() == "Dataprep(path='data/test', network='dummy', station=['DEBW107'], "\
"variables=['o3', 'temp'], station_type='traffic', **None)".rstrip()
"variables=['o3', 'temp'], station_type=traffic, **None)".rstrip()
def test_set_file_name_and_meta(self):
d = object.__new__(DataPrep)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment