Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vdk-heartbeat: fix test failures #1703

Merged
merged 1 commit into from
Mar 7, 2023
Merged

Conversation

antoniivanov
Copy link
Collaborator

https://gitlab.com/vmware-analytics/versatile-data-kit/-/jobs/3876278808 was failing with

FAILED tests/vdk/internal/test_trino_database_test.py::test_create_table
- TypeError: '>' not supported between instances of 'MagicMock' and
'int'
FAILED tests/vdk/internal/test_trino_database_test.py::test_delete_table
- TypeError: '>' not supported between instances of 'MagicMock' and
'int'
FAILED
tests/vdk/internal/test_trino_database_test.py::test_insert_table_row -
TypeError: '>' not supported between instances of 'MagicMock' and 'int'
FAILED tests/vdk/internal/test_trino_database_test.py::test_select_data
- TypeError: '>' not supported between instances of 'MagicMock' and
'int'

Trying to fix this.

Testing Done: this CI.

Copy link
Contributor

@yonitoo yonitoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

vdk-heartbeat test was failing with
```
FAILED tests/vdk/internal/test_trino_database_test.py::test_create_table
- TypeError: '>' not supported between instances of 'MagicMock' and
'int'
FAILED tests/vdk/internal/test_trino_database_test.py::test_delete_table
- TypeError: '>' not supported between instances of 'MagicMock' and
'int'
FAILED
tests/vdk/internal/test_trino_database_test.py::test_insert_table_row -
TypeError: '>' not supported between instances of 'MagicMock' and 'int'
FAILED tests/vdk/internal/test_trino_database_test.py::test_select_data
- TypeError: '>' not supported between instances of 'MagicMock' and
'int'

```
as seen at
https://gitlab.com/vmware-analytics/versatile-data-kit/-/jobs/3876278808

Trying to fix this.

Testing Done: this CI.

Signed-off-by: Antoni Ivanov <aivanov@vmware.com>
@antoniivanov antoniivanov enabled auto-merge (squash) March 7, 2023 14:35
@antoniivanov antoniivanov merged commit 37fe654 into main Mar 7, 2023
@antoniivanov antoniivanov deleted the person/aivanov/vdk-heartbeat branch March 7, 2023 14:38
ivakoleva pushed a commit that referenced this pull request Mar 9, 2023
https://gitlab.com/vmware-analytics/versatile-data-kit/-/jobs/3876278808
was failing with
```
FAILED tests/vdk/internal/test_trino_database_test.py::test_create_table
- TypeError: '>' not supported between instances of 'MagicMock' and
'int'
FAILED tests/vdk/internal/test_trino_database_test.py::test_delete_table
- TypeError: '>' not supported between instances of 'MagicMock' and
'int'
FAILED
tests/vdk/internal/test_trino_database_test.py::test_insert_table_row -
TypeError: '>' not supported between instances of 'MagicMock' and 'int'
FAILED tests/vdk/internal/test_trino_database_test.py::test_select_data
- TypeError: '>' not supported between instances of 'MagicMock' and
'int'

```

Trying to fix this.

Testing Done: this CI.

Signed-off-by: Antoni Ivanov <aivanov@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants