Skip to content

Commit 9884af2

Browse files
committed
ci: superuser creation
1 parent 1173936 commit 9884af2

File tree

4 files changed

+3
-1
lines changed

4 files changed

+3
-1
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
mkdir $TMP_EMAIL_DIR
3737
bash ./tests/integration/pocketbase &
3838
sleep 1
39+
bash ./tests/integration/pocketbase_su
3940
4041
- name: Lint with ruff
4142
run: uv run ruff check .

tests/integration/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def client() -> PocketBase:
3636
client.admins.create(cred)
3737
except ClientResponseError:
3838
pass
39-
client.admins.auth_with_password(cred["email"], cred["password"])
39+
client.admins.auth_with_password(str(cred["email"]), str(cred["password"]))
4040
return client
4141
except Exception:
4242
pytest.skip("No Database found on 127.0.0.1:8090")

tests/integration/pocketbase

100644100755
File mode changed.

tests/integration/pocketbase_su

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./pocketbase superuser upsert [email protected] 2f199a97ac9e42e3b9e59b9d939b6e5f

0 commit comments

Comments
 (0)