From 12d0d0c176d50008b984ef8b45fd3e3487b8bf05 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Fri, 21 Jan 2022 09:24:53 -0500 Subject: [PATCH] hydra-create-user: use test_context over test_init --- t/scripts/hydra-create-user.t | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/t/scripts/hydra-create-user.t b/t/scripts/hydra-create-user.t index 0de58b16..76360afe 100644 --- a/t/scripts/hydra-create-user.t +++ b/t/scripts/hydra-create-user.t @@ -1,17 +1,10 @@ -use feature 'unicode_strings'; use strict; use warnings; use Setup; - -my %ctx = test_init(); - -require Hydra::Schema; -require Hydra::Model::DB; - use Test2::V0; -my $db = Hydra::Model::DB->new; -hydra_setup($db); +my $ctx = test_context(); +my $db = $ctx->db(); subtest "Handling password and password hash creation" => sub { subtest "Creating a user with a plain text password (insecure) stores the password securely" => sub {