summaryrefslogtreecommitdiff
path: root/src/test/fixtures
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2025-08-24 01:12:06 -0400
committerOwen Jacobson <owen@grimoire.ca>2025-08-24 04:50:49 -0400
commitfd6a74e8ca1f5ded2a760b8ac644124862d80d54 (patch)
tree1da22665c0259c3a4ed63bb7acef4a6e81365dbe /src/test/fixtures
parent97e4c1d25f6ee17959adc23cacd8361dcd42e519 (diff)
Hoist `password` out to the top level.
Having this buried under `crate::user` makes it hard to split up the roles `user` fulfils right now. Moving it out to its own module makes it a bit tidier to reuse it in a separate, authentication-only way.
Diffstat (limited to 'src/test/fixtures')
-rw-r--r--src/test/fixtures/cookie.rs2
-rw-r--r--src/test/fixtures/identity.rs2
-rw-r--r--src/test/fixtures/user.rs3
3 files changed, 4 insertions, 3 deletions
diff --git a/src/test/fixtures/cookie.rs b/src/test/fixtures/cookie.rs
index bba53b8..41779db 100644
--- a/src/test/fixtures/cookie.rs
+++ b/src/test/fixtures/cookie.rs
@@ -4,8 +4,8 @@ use crate::{
app::App,
clock::RequestedAt,
name::Name,
+ password::Password,
token::{Secret, extract::IdentityCookie},
- user::Password,
};
pub fn not_logged_in() -> IdentityCookie {
diff --git a/src/test/fixtures/identity.rs b/src/test/fixtures/identity.rs
index cb325d8..84e1cf6 100644
--- a/src/test/fixtures/identity.rs
+++ b/src/test/fixtures/identity.rs
@@ -2,12 +2,12 @@ use crate::{
app::App,
clock::RequestedAt,
name::Name,
+ password::Password,
test::fixtures,
token::{
self,
extract::{Identity, IdentityCookie},
},
- user::Password,
};
pub async fn create(app: &App, created_at: &RequestedAt) -> Identity {
diff --git a/src/test/fixtures/user.rs b/src/test/fixtures/user.rs
index 6448f64..086f866 100644
--- a/src/test/fixtures/user.rs
+++ b/src/test/fixtures/user.rs
@@ -5,7 +5,8 @@ use crate::{
app::App,
clock::RequestedAt,
name::Name,
- user::{self, Password, User},
+ password::Password,
+ user::{self, User},
};
pub async fn create_with_password(app: &App, created_at: &RequestedAt) -> (Name, Password) {