openedx/openedx-platform

Test: Tests break when pycountries updates its list of countries

オープン

#37,611 opened on 2025/11/05

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Python (4,331 件のフォーク)auto 404
good first issuetesting

Repository metrics

Stars
 (8,150 個のスター)
PR merge metrics
 (PR metrics pending)

説明

Everytime pycountries updates the list of countries, edx-platform tests fail because we have a copy of the list from that library as a set of test constants: https://github.com/openedx/edx-platform/blob/master/openedx/core/djangoapps/user_api/tests/test_constants.py

This is super brittle and it's unclear what value it's providing. Do we need these tests? What are they doing? Can we test what we care about in a less brittle way?

Investigate the tests that use the SORTED_COUNTRIES constant and where it's used and see if we can get rid of it.

コントリビューターガイド