From aa85b742f5782bae044efa337095458d53fb011a Mon Sep 17 00:00:00 2001 From: Lan Hui Date: Tue, 17 Sep 2024 14:51:22 +0800 Subject: [PATCH] README.md: how to restore database --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 99b7e2e..d2423c9 100644 --- a/README.md +++ b/README.md @@ -159,7 +159,16 @@ https://github.com/spm2020spring/TeamCollaborationTutorial/blob/master/team.rst ## Testing -Make sure your changes can pass all the tests in folder [./test](http://121.4.94.30:3000/mrlan/LRR/src/branch/master/test). +Make sure your changes can pass all the tests in folder ./test. + +You cannot do too much unit testing for LRR because it almost does not +have functions or classes. However, you can do end-to-end testing. +It is important that you *restore* the database each time before your +run a test case. The fixture *restore_database* in ./test/conftest.py +is used to restore the database. Please check that. A use case for +this fixture can be found in the test script +./test/SeleniumMpiana/test_bug418_yaaqob.py. You could run this test script +by typing the following command: `pytest ./SeleniumMpiana/test_bug418_yaaqob.py` ## Communications Method