guix-data-service/tests/model-derivation.scm
Christopher Baines 743cec7cb6 Associate a name with database connections
This helps when working out which connection to the database is doing what.
2019-07-12 19:49:26 +01:00

19 lines
434 B
Scheme

(define-module (test-model-derivation)
#:use-module (srfi srfi-64)
#:use-module (guix-data-service database)
#:use-module (guix-data-service model derivation))
(test-begin "test-model-derivation")
(with-postgresql-connection
"test-model-derivation"
(lambda (conn)
(test-equal "valid-systems"
'()
(valid-systems conn))
(test-equal "count-derivations"
'("0")
(count-derivations conn))))
(test-end)