tl-its-umich-edu / remote-office-hours-queue

Virtual queuing tool supporting Zoom video conferencing and/or in person meetings.
https://officehours.it.umich.edu/
Apache License 2.0
12 stars 28 forks source link

Create mock environment to test cases in test_settings #475

Open jonespm opened 7 months ago

jonespm commented 7 months ago

The test for test_settings.py tests values set on the settings which are read from the environment. We either should set some mock values against the settings or have them set in the environment with something like monkeypatch.setenv or probably more likely SimpleTestCase.settings() to actually test that these settings are loaded correctly with different sets of settings.

I'd also include a test case for REDIS_HOST that includes spaces.

Originally posted by @jonespm in https://github.com/tl-its-umich-edu/remote-office-hours-queue/pull/473#pullrequestreview-1989285615