Skip to content

fix: fix the tests in test_register file#31523

Merged
attiyaIshaque merged 1 commit intomasterfrom
attiya/VAN-900-fix-tests
Jan 13, 2023
Merged

fix: fix the tests in test_register file#31523
attiyaIshaque merged 1 commit intomasterfrom
attiya/VAN-900-fix-tests

Conversation

@attiyaIshaque
Copy link
Contributor

@attiyaIshaque attiyaIshaque commented Jan 12, 2023

Description

Some tests in user_authn/views/tests/test_register.py fail when run in a particular order locally on devstack because when we run in specific order with the feature flag ENABLE_COPPA_COMPLIANCE is True it will remove the self.EXTRA_FIELDS.remove('year_of_birth') so the EXTRA_FIELDS is define globally. When we run the tests in specific order year_of_birth didn't find and the next tests will be failed.

VAN-900

Testing instructions

you can test it by running this command.
pytest -p 'no:randomly' openedx/core/djangoapps/user_authn/views/tests/test_register.py::RegistrationViewTestV2::test_year_of_birth_field_with_feature_flag openedx/core/djangoapps/user_authn/views/tests/test_register.py::RegistrationViewTestV2::test_register_form_year_of_birth openedx/core/djangoapps/user_authn/views/tests/test_register.py::RegistrationViewTestV2::test_field_order_override openedx/core/djangoapps/user_authn/views/tests/test_register.py::RegistrationViewTestV2::test_field_order openedx/core/djangoapps/user_authn/views/tests/test_register.py::RegistrationViewTestV2::test_field_order_invalid_override
It will fail on MASTER BRANCH.

Copy link
Contributor

@syedsajjadkazmii syedsajjadkazmii left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏻

@attiyaIshaque attiyaIshaque force-pushed the attiya/VAN-900-fix-tests branch from 71ff414 to 08b3e64 Compare January 13, 2023 10:10
@attiyaIshaque attiyaIshaque merged commit b9b8560 into master Jan 13, 2023
@attiyaIshaque attiyaIshaque deleted the attiya/VAN-900-fix-tests branch January 13, 2023 13:20
@edx-pipeline-bot
Copy link
Contributor

EdX Release Notice: This PR has been deployed to the staging environment in preparation for a release to production.

@edx-pipeline-bot
Copy link
Contributor

EdX Release Notice: This PR has been deployed to the production environment.

awais786 pushed a commit that referenced this pull request Jan 13, 2023
fix: fix 500 error when fetching course run (#31518)

chore: bumping enterprise package version to 3.60.10

feat: ping 2u-tnl for changes to student model

student model changes should notify 2u-tnl team, to trigger a SOX compliance oriented review of the changes.

feat: point to newly refacto
revert: temp: let XBlock API users optionally use LabXchange block types (#31315)

when fetching block metadata and rendering blocks while maintaining the
original usage IDs/OLX.

Reverts ef8f841

chore: Updating Python Requirements

build: Adding constraint to avoid multiple major upgrades.

build: Adding constraint to avoid multiple major upgrades.

chore: Updating Python Requirements (#31525)

build: Adding constraint to avoid multiple major upgrades.

chore: Updating Python Requirements (#31526)

build: Adding constraint to avoid multiple major upgrades.

build: Adding constraint to avoid multiple major upgrades.

feat: release edx-enterprise 3.60.11 (#31528)

build: Adding constraint to avoid multiple major upgrades.

chore: Updating Python Requirements (#31533)

fix: fix the tests in test_register file (#31523)

chore: Updating Python Requirements (#31534)

fix: fixing upgrades.

fixing: fixing upgrades.

chore: Updating Python Requirements (#31535)

fix: fixing upgrades

chore: Updating Python Requirements (#31536)

fix: fixing upgrades

chore: Updating Python Requirements (#31538)

fix: fixing upgrades

chore: Updating Python Requirements (#31539)
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.

3 participants