mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-11 12:33:25 -08:00
[Tests] Migrate server tests to the shared fixture
Replace the remaining private MockDatabaseInterface/FakeServer copies in the forced-password, room-channel, movecard, and random-reveal tests with InMemoryServer_DatabaseInterface and ServerTestFixture. The room-channel test keeps its log assertions against the shared logEntries; the forced-password test seeds its moderator user and auth result through the fixture knobs. Delete movecard_tests/server_test_helpers.h.
This commit is contained in:
parent
2187e47a60
commit
7b8558c695
8 changed files with 34 additions and 167 deletions
|
|
@ -6,6 +6,9 @@ cockatrice_add_test(
|
|||
LIBS
|
||||
libcockatrice_network_server_remote
|
||||
libcockatrice_rng
|
||||
testsupport_server
|
||||
INCLUDE_DIRS
|
||||
${CMAKE_SOURCE_DIR}/tests
|
||||
LABELS
|
||||
server
|
||||
)
|
||||
|
|
@ -18,6 +21,9 @@ cockatrice_add_test(
|
|||
LIBS
|
||||
libcockatrice_network_server_remote
|
||||
libcockatrice_rng
|
||||
testsupport_server
|
||||
INCLUDE_DIRS
|
||||
${CMAKE_SOURCE_DIR}/tests
|
||||
LABELS
|
||||
server
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue