Commit graph

23 commits

Author SHA1 Message Date
Ben Rog-Wilhelm
358674d39f Tweaks to seed_db to allow an sqlalchemy update, plus a test. 2023-02-12 13:41:55 -06:00
justcool393
f8f55be8b0
constantify render depth limit 2023-02-10 13:54:49 -06:00
faul_sname
c0a546d779 [themotte/rDrama#451] Passing in the db connection as an optional param makes things easier 2023-01-13 19:33:56 -08:00
faul_sname
cdac0174f1 [themotte/rDrama#451] Add test for bulk_recompute_descendant_counts() 2023-01-13 19:12:56 -08:00
faul_sname
779d27706d [themotte/rDrama#451] Add a test for the labels on "More Comments (n)" buttons 2023-01-06 18:27:54 -08:00
faul_sname
2e29b468ec [themotte/rDrama#451] Add a test for comment.descendant_count accuracy 2023-01-03 01:45:37 -08:00
faul_sname
9c1e247685 [themotte/rDrama#451] Fixture fixes 2023-01-03 01:36:40 -08:00
faul_sname
7bfccf36d0 [themotte/rDrama#451] And finally that test can test the comment count correctly 2023-01-03 01:18:15 -08:00
faul_sname
2e0104a7cc [themotte/rDrama#451] Expand test coverage to cover who should see removed comments 2023-01-03 01:12:31 -08:00
faul_sname
d7589716f6 [themotte/rDrama#451] Fix test 2023-01-01 23:06:51 -08:00
faul_sname
e7508dad56 [themotte/rDrama#451] A test 2022-12-31 02:35:37 -08:00
faul_sname
8b7e637e6e [themotte/rDrama#451] The basic post/comment test should not fail no matter what env says 2022-12-31 02:07:18 -08:00
faul_sname
6905710b18 [themotte/rDrama#451] Sometimes we also want the user, not just their session 2022-12-31 02:06:42 -08:00
faul_sname
f78345a4fb [themotte/rDrama#451] Decorator when we do not want to rate limit in tests 2022-12-31 02:06:17 -08:00
faul_sname
0dcca12c04 [themotte/rDrama#451] New fixture for comments 2022-12-31 02:05:22 -08:00
faul_sname
4bfb66272c [themotte/rDrama#451] New fixture for submissions 2022-12-31 02:05:02 -08:00
Ben Rog-Wilhelm
fe800dd9a5 Add a grandchild comment test. 2022-12-28 09:14:33 -06:00
Ben Rog-Wilhelm
e257db1542
Refactor test system to be more extendable, add comment test 2022-12-17 19:41:35 -06:00
Inire
4bdfe28a35 remove .pyc files 2022-10-27 21:54:07 -05:00
Inire
bb34723a81 Support -> Support Us 2022-10-27 21:54:07 -05:00
FatherInire
31cb9e049f
Add basic posting to the e2e test.
Co-authored-by: Inire <>
2022-05-21 21:39:54 -05:00
faul-sname
4892b58d10
Add migrations using alembic.
* #39 Add Flask-Migrate dep

* #39 Make it such that flask db init can run

https://github.com/miguelgrinberg/Flask-Migrate/issues/196#issuecomment-381343393

* Run flask db init, update migrations.env, commit artifacts

* Set up a script such that you can `docker-compose exec files bash -c 'cd /service; FLASK_APP="files/cli:app" flask '` and have it do whatever flask thing you want

* Fix circular dependency

* import * is evil

* Initial alembic migration, has issues with constraints and nullable columns

* Bring alts table up to date with alembic autogenerate

* Rerun flask db revision autogenerate

* Bring award_relationships table up to date with alembic autogenerate

* [#39/alembic] files/classes/__init__.py is evil but is at least explicitly evil now

* #39 fix model in files/classes/badges.py

* #39 fix model in files/classes/domains.py and files/classes/clients.py

* #39 fix models: comment saves, comment flags

* #39 fix models: comments

* Few more imports

* #39 columns that are not nullable should be flagged as not nullable

* #39 Add missing indexes to model defs

* [#39] add missing unique constraints to model defs

* [#39] Temporarily undo any model changes which cause the sqlalchemy model to be out of sync with the actual dump

* #39 Deforeignkeyify the correct column to make alembic happy

* #39 flask db revision --autogenerate now creates an empty migration

* #39 Migration format such that files are listed in creation order

* #39 Better first revision

* #39 Revert the model changes that were required to get to zero differences between db revision --autogenerate and the existing schema

* #39 The first real migration

* #39 Ensure that foreign key constraints are named in migration

* #39 Alembic migrations for FK constraints, column defs

* [#39] Run DB migrations before starting tests

* [#39] New test to ensure migrations are up to date

* [#39] More descriptive test failure message

* Add -T flag to docker-compose exec

* [#39] Run alembic migrations when starting the container
2022-05-17 18:55:17 -05:00
FatherInire
a12123ca01
Initial e2e testing
Authored by @FatherInire
2022-05-13 02:55:29 -05:00