2019-04-14 10:08:11 +01:00
|
|
|
(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
|
2019-07-12 19:45:41 +01:00
|
|
|
"test-model-derivation"
|
2019-04-14 10:08:11 +01:00
|
|
|
(lambda (conn)
|
2020-02-24 21:16:41 +00:00
|
|
|
(check-test-database! conn)
|
|
|
|
|
|
2019-04-14 10:08:11 +01:00
|
|
|
(test-equal "count-derivations"
|
|
|
|
|
'("0")
|
|
|
|
|
(count-derivations conn))))
|
|
|
|
|
|
|
|
|
|
(test-end)
|