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

Fix azureblob tests: use json instead of numpy #3032

Merged
merged 1 commit into from
Feb 10, 2021

Conversation

vbarbaresi
Copy link
Contributor

Numpy is not installed in the current setup.
I replaced Numpy data by a simple JSON structure

It fixes these errors (https://travis-ci.org/github/spotify/luigi/jobs/754449469):

  File "/home/travis/build/spotify/luigi/test/contrib/azureblob_test.py", line 138, in run

    import numpy

ModuleNotFoundError: No module named 'numpy'

The test silently failed, asserts didn't run because the task was skipped
I added an assert checking the output of FinalTask to make sure it runs

Tested using Azurite and using a real Azure storage account

Numpy is not installed in the current setup

It fixes these errors:

```
  File "/home/travis/build/spotify/luigi/test/contrib/azureblob_test.py", line 138, in run

    import numpy

ModuleNotFoundError: No module named 'numpy'
```
https://travis-ci.org/github/spotify/luigi/jobs/754449469

The test silently failed, asserts weren't covered
Added an assert checking the output of FinalTask
final_task = FinalTask()
luigi.build([final_task], local_scheduler=True, log_level='NOTSET')
output = final_task.output().open("r").read()
assert "Toto" in output
Copy link
Member

Choose a reason for hiding this comment

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

👍

@honnix honnix merged commit 005d288 into spotify:master Feb 10, 2021
hirosassa pushed a commit to hirosassa/luigi that referenced this pull request Feb 10, 2021
Numpy is not installed in the current setup

It fixes these errors:

```
  File "/home/travis/build/spotify/luigi/test/contrib/azureblob_test.py", line 138, in run

    import numpy

ModuleNotFoundError: No module named 'numpy'
```
https://travis-ci.org/github/spotify/luigi/jobs/754449469

The test silently failed, asserts weren't covered
Added an assert checking the output of FinalTask
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants