Proper test users

This commit is contained in:
echarp 2022-10-26 23:38:40 +02:00
parent 246782fb82
commit 1eadef135c
6 changed files with 8 additions and 12 deletions

View File

@ -34,5 +34,5 @@ ac_choices:
teardown() {
rm -f content/test.md
rm -rf content/users
rm -rf content/users/test
}

View File

@ -26,5 +26,5 @@ On multiple lines" > content/users/test/content_test.content
}
teardown() {
rm -rf content/users
rm -rf content/users/test
}

View File

@ -1,9 +1,5 @@
#!/usr/bin/env bats
setup() {
mkdir -p content/users/create_test
}
@test "Create user" {
echo "users" > content/users/create_test.create
@ -34,7 +30,3 @@ setup() {
[ ! -e content/users/create_test/_index.md ]
[ ! -e content/users/create_test ]
}
teardown() {
rm -rf content/users
}

View File

@ -66,7 +66,7 @@ ac_delete:
teardown() {
rm -f content/test.md
rm -rf content/pages/test
rm -rf content/users
rm -rf content/users/test
rm -f content/simple_link_test.md
rm -f content/to_create_test.md
rm -f content/to_delete_test.md

View File

@ -127,5 +127,5 @@ ac_choices:
}
teardown() {
rm -rf content/users
rm -rf content/users/test
}

4
content/users/_index.md Normal file
View File

@ -0,0 +1,4 @@
---
title: Utilisateurs
---