Skip to content

Commit ca663f6

Browse files
authored
Merge pull request LREN-CHUV#39 from LREN-CHUV/fix-tests
fix failing tests for python-anova and python-summary-statistics
2 parents 15468db + 03ceeaa commit ca663f6

3 files changed

Lines changed: 14 additions & 52 deletions

File tree

python-anova/tests/docker-compose.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,18 @@ services:
6868
environment:
6969
NODE: job_test
7070
JOB_ID: 1
71-
IN_JDBC_DRIVER: org.postgresql.Driver
72-
IN_JDBC_URL: jdbc:postgresql://db:5432/features
73-
IN_JDBC_USER: features
74-
IN_JDBC_PASSWORD: featurespwd
75-
OUT_JDBC_DRIVER: org.postgresql.Driver
76-
OUT_JDBC_URL: jdbc:postgresql://db:5432/woken
77-
OUT_JDBC_USER: woken
78-
OUT_JDBC_PASSWORD: wokenpwd
71+
IN_DBAPI_DRIVER: postgresql
72+
IN_USER: features
73+
IN_PASSWORD: featurespwd
74+
IN_HOST: db
75+
IN_PORT: 5432
76+
IN_DATABASE: features
77+
OUT_DBAPI_DRIVER: postgresql
78+
OUT_USER: woken
79+
OUT_PASSWORD: wokenpwd
80+
OUT_HOST: db
81+
OUT_PORT: 5432
82+
OUT_DATABASE: woken
7983
PARAM_variables: "score_test1"
8084
PARAM_covariables: "stress_before_test1,iq"
8185
PARAM_grouping: ""

python-histograms/tests/unit_test.py

Lines changed: 0 additions & 42 deletions
This file was deleted.

python-summary-statistics/tests/unit/test_statistics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ def test_intermediate_stats_empty(mock_save_error, mock_save_results, mock_fetch
112112
with mock.patch('sys.exit'):
113113
intermediate_stats()
114114

115-
error = mock_save_results.call_args[0][1]
116-
assert error == 'Dependent variable has no values, check your SQL query.'
115+
error = mock_save_error.call_args[0]
116+
assert error == ('Dependent variable has no values, check your SQL query.',)
117117

118118

119119
def intermediate_data_1():

0 commit comments

Comments
 (0)