Check that the test database is being used in all the tests
This commit is contained in:
parent
b337c5fcb2
commit
ffdde6ba36
11 changed files with 22 additions and 0 deletions
|
|
@ -109,6 +109,8 @@ Summary of changes:
|
|||
(with-postgresql-connection
|
||||
"test-branch-updated-emails"
|
||||
(lambda (conn)
|
||||
(check-test-database! conn)
|
||||
|
||||
(test-assert "enqueue-job-for-email works"
|
||||
(with-postgresql-transaction
|
||||
conn
|
||||
|
|
|
|||
|
|
@ -17,6 +17,8 @@
|
|||
(with-postgresql-connection
|
||||
"test-jobs-load-new-guix-revision"
|
||||
(lambda (conn)
|
||||
(check-test-database! conn)
|
||||
|
||||
(exec-query conn "TRUNCATE guix_revisions CASCADE")
|
||||
|
||||
(test-equal "select-job-for-commit works"
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@
|
|||
(with-postgresql-connection
|
||||
"test-model-derivation"
|
||||
(lambda (conn)
|
||||
(check-test-database! conn)
|
||||
|
||||
(test-equal "valid-systems"
|
||||
'("aarch64-linux" "armhf-linux" "i686-linux" "mips64el-linux" "x86_64-linux")
|
||||
(valid-systems conn))
|
||||
|
|
|
|||
|
|
@ -10,6 +10,8 @@
|
|||
(with-postgresql-connection
|
||||
"test-module-git-branch"
|
||||
(lambda (conn)
|
||||
(check-test-database! conn)
|
||||
|
||||
(test-assert "insert-git-branch-entry works"
|
||||
(with-postgresql-transaction
|
||||
conn
|
||||
|
|
|
|||
|
|
@ -9,6 +9,8 @@
|
|||
(with-postgresql-connection
|
||||
"test-model-git-repository"
|
||||
(lambda (conn)
|
||||
(check-test-database! conn)
|
||||
|
||||
(test-assert "returns an id for a non existent URL"
|
||||
(with-postgresql-transaction
|
||||
conn
|
||||
|
|
|
|||
|
|
@ -27,6 +27,8 @@
|
|||
(with-postgresql-connection
|
||||
"test-model-license-set"
|
||||
(lambda (conn)
|
||||
(check-test-database! conn)
|
||||
|
||||
(with-postgresql-transaction
|
||||
conn
|
||||
(lambda (conn)
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@
|
|||
(with-postgresql-connection
|
||||
"test-model-license"
|
||||
(lambda (conn)
|
||||
(check-test-database! conn)
|
||||
|
||||
(with-postgresql-transaction
|
||||
conn
|
||||
(lambda (conn)
|
||||
|
|
|
|||
|
|
@ -13,6 +13,8 @@
|
|||
(with-postgresql-connection
|
||||
"test-model-lint-checker"
|
||||
(lambda (conn)
|
||||
(check-test-database! conn)
|
||||
|
||||
(test-assert "single insert"
|
||||
(with-postgresql-transaction
|
||||
conn
|
||||
|
|
|
|||
|
|
@ -13,6 +13,8 @@
|
|||
(with-postgresql-connection
|
||||
"test-model-lint-checker"
|
||||
(lambda (conn)
|
||||
(check-test-database! conn)
|
||||
|
||||
(test-assert "single insert"
|
||||
(with-postgresql-transaction
|
||||
conn
|
||||
|
|
|
|||
|
|
@ -48,6 +48,8 @@
|
|||
(with-postgresql-connection
|
||||
"test-model-package-metadata"
|
||||
(lambda (conn)
|
||||
(check-test-database! conn)
|
||||
|
||||
(test-assert "inferior-packages->package-metadata-ids"
|
||||
(with-postgresql-transaction
|
||||
conn
|
||||
|
|
|
|||
|
|
@ -55,6 +55,8 @@
|
|||
(with-postgresql-connection
|
||||
"test-model-package"
|
||||
(lambda (conn)
|
||||
(check-test-database! conn)
|
||||
|
||||
(with-postgresql-transaction
|
||||
conn
|
||||
(lambda (conn)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue