Closed dhmoon91 closed 3 years ago
Lesson learned:
Postgres does not rollback advances in a sequence even if the sequence is used in a transaction which is rolled back.
(from https://stackoverflow.com/a/12443800)SAVEPOINT
or rollback()
since change was already commited (from https://docs.sqlalchemy.org/en/14/orm/session_transaction.html#using-savepoint)pg_dump
or pg_dumpall
to backup and restore DB since these commands to not Truncate Table back to empty status (from https://www.postgresql.org/docs/8.3/backup-dump.html)Solution was to create separate DB for test, and TRUNCATE summoners table after test is done
Closing as PR has been merged
Let's setup unit test for
rank
command.Requirements;
snapshot
of data. Create new test run command into new.yml
that gets triggered upon new push.