Faculty of Engineering and Mathematical Sciences 
Not logged in (login)

help3403


This forum is provided to promote discussion amongst students enrolled in Agile Web Development (CITS3403).
 
Options:
RSS cloud
Jump to:

Unit and System Testing Config for submission

2 of 419 articles shown, currently no other people reading this forum.
photo
From: ANONYMOUS
Date: Mon 25th May 2020, 11:42am
Actions: 
        Login-to-reply

 

Hi, I'm just wondering if it's ok to ask the markers to change config, so that they 
can run the tests? We have 2 separate dbs (test.db and quiz_website.db) and 2 Config 
classes (Config and TestConfig). To avoid the tests process permanently changing 
quiz_website.db (which is the path in Config), we have to set the app config in 
__init__.py to TestConfig BEFORE invoking flask run, which when the tests is then 
invoked, only test.db is modified. So is it ok to submit this approach for testing?

Thanks!

Unit and System Testing Config for submission

photo
From: Timothy F.
Date: Mon 25th May 2020, 12:31pm
Actions: 
        Login-to-reply

 

ANONYMOUS wrote:

> Hi, I'm just wondering if it's ok to ask the markers to change config, so that they 
> can run the tests? We have 2 separate dbs (test.db and quiz_website.db) and 2 Config 
> classes (Config and TestConfig). To avoid the tests process permanently changing 
> quiz_website.db (which is the path in Config), we have to set the app config in 
> __init__.py to TestConfig BEFORE invoking flask run, which when the tests is then 
> invoked, only test.db is modified. So is it ok to submit this approach for testing?
> 
> Thanks!

That sounds fine to me. Just make the instructions clear in the readme.
This Page


Program written by: [email protected]
Feedback welcome
Last modified: 11:27am Sep 21 2020