11 lines
294 B
Python
11 lines
294 B
Python
# tests/db_test.py
|
|
# Simple test for the list_users database function
|
|
import pytest
|
|
from database import list_users
|
|
|
|
def test_list_users():
|
|
users = list_users()
|
|
assert isinstance(users, list)
|
|
# Optionally, check for a known user if you have one, e.g.:
|
|
# assert 'ADMIN' in users
|