Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ jobs:
- name: Create env file
run: cp template.env .env

# The default TEST_RUNNER (django-nose) does not work on Python 3.11,
# because nose uses collections.Callable. Use the Django test runner.
- name: Run tests
run: >
docker compose run --rm --build migrate
python manage.py test --noinput --testrunner=django.test.runner.DiscoverRunner
python manage.py test --noinput
3 changes: 3 additions & 0 deletions hashtagsv2/hashtags/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ class Meta:
page_title = factory.Faker("word")
edit_summary = factory.Faker("sentence")
rc_id = random.randint(1, 100000)
# Rows need a revision ID so that they can be checked against the wiki.
# See T277832 and hashtagsv2.hashtags.visibility.
rev_id = factory.Sequence(lambda n: 1000000 + n)
has_image = False
has_video = False
has_audio = False
Loading