- plugin_tests/: 9 tests running the plugin inside CTFd 3.8.9's test app (users and teams mode): own/shared flags, single reports, admins, invalid owners and empty flags, teams, create_flag_if_missing, the admin flag form, the admin page and dismissing. - make venv (uv, Python 3.11), make lint, make format, make test: same tools and versions as ctfd-whale. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
14 lines
682 B
INI
14 lines
682 B
INI
[pytest]
|
|
# This directory is the rootdir on purpose: the repo root is the plugin
|
|
# package itself (it has an __init__.py), which pytest would otherwise import
|
|
# as a test package before any CTFd app exists. The folder isn't called
|
|
# "tests" because CTFd's own tests package, whose helpers the suite uses,
|
|
# needs that name. Run with: make test
|
|
addopts = -p no:cacheprovider
|
|
filterwarnings =
|
|
ignore::DeprecationWarning
|
|
# CTFd's test client uses the "localhost" cookie domain
|
|
ignore:'localhost' is not a valid cookie domain:UserWarning
|
|
# CTFd's Flags model maps no subclasses: every flag type warns
|
|
ignore:Flushing object .* with incompatible polymorphic identity
|