diff options
author | rubenwardy <rw@rubenwardy.com> | 2020-01-19 19:09:04 +0000 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2020-01-19 19:09:04 +0000 |
commit | 0bda16de6dae7a684acf4332312765fe2d78741c (patch) | |
tree | 86d19c95f391af2b2897ca3d4a307878b09fc065 /utils/setup.py | |
parent | fd6ba459f928d110d796cd464b16f47f97dc0f53 (diff) | |
download | cheatdb-0bda16de6dae7a684acf4332312765fe2d78741c.tar.xz |
Add API tests
Diffstat (limited to 'utils/setup.py')
-rw-r--r-- | utils/setup.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/setup.py b/utils/setup.py index fb87fcc..1ac9bf3 100644 --- a/utils/setup.py +++ b/utils/setup.py @@ -40,6 +40,9 @@ if create_db: db.create_all() print("Filling database...") + populate(db.session) if test_data: - populate_test_data(licenses, tags, User.filter_by(rank=UserRank.ADMIN).first()) + populate_test_data(db.session) + +db.session.commit() |