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 tests ahead of django-dynamic-fixture update #7073

Merged
merged 2 commits into from
May 19, 2020

Conversation

santos22
Copy link
Contributor

@santos22 santos22 commented May 13, 2020

Closes #6886

Latest pyup dependency update - #7012

There were a couple of tests failing locally that looked unrelated to the django-dynamic-fixure upgrade:

  • test_privacy_urls.py (fixed)
  • test_core_utils.py (fixed)

@santos22
Copy link
Contributor Author

Looks like the following tests keep failing because build_queue is not set on the project:

  • test_trigger_build_rounded_time_limit
  • test_trigger_build_translation_medium_priority
  • test_trigger_external_build_low_priority

@santos22 santos22 changed the title Fix tests ahead of django-dynamic-fixture upgrade Fix tests ahead of django-dynamic-fixture update May 18, 2020
@@ -166,6 +166,7 @@ def test_trigger_build_invalid_time_limit(self, update_docs):
def test_trigger_build_rounded_time_limit(self, update_docs):
"""Time limit should round down."""
self.project.container_time_limit = 3
self.project.build_queue = 'build_queue'
Copy link
Member

Choose a reason for hiding this comment

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

Not sure why we need this to make the tests pass. Where are we expecting this to be set?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are AssertionErrors near the bottom.

Copy link
Member

Choose a reason for hiding this comment

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

For those cases, we just need to delete the expected value of queue 'queue': mock.ANY,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will go ahead and remove 👍

@santos22
Copy link
Contributor Author

santos22 commented May 19, 2020

Oh. I was not getting those test failures. Will fix them too...

Guess the build stops automatically when it encounters test failures and you can't see if there are more test failures until you fix the first set.

Copy link
Member

@stsewd stsewd left a comment

Choose a reason for hiding this comment

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

Thanks!

@stsewd stsewd merged commit 3d77a0e into readthedocs:master May 19, 2020
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.

Make all tests pass with django_dynamic_fixture 3.x
2 participants