LOC-15 Implement Testing mode
author B Tasker
()
committer B Tasker
()
commit 990a4a03c62e83914d6cd967f272eba8fed07903
tree c76af08fbdd4ed2e16352e6e55f4ca5f62b06910
parent faba89833cac58ddc09c0252464b8e89c3bf5b5d
LOC-15 Implement Testing mode

When the argument '--enable-testing-mode' is included in the server's commandline, the database will be created on disk instead of in memory.

This is so that tests can check the database directly to verify that what's been written into the database is what's expected.

When testing mode is enabled, the server will print a warning on the commandline at startup.
It will also push a message into rooms whenever a new user joins, so that if it is inadvertantly used, users will know that their message payloads are being written to disk.
.gitignore
server/LocalChat.py