dturecek / copr / copr

Forked from copr/copr 6 years ago
Clone

043f50b [frontend] reset config changes after each test method

3 files Authored by frostyx 5 years ago, Committed by praiskup 5 years ago,
    [frontend] reset config changes after each test method
    
    We use following statements in our tests:
    
        app.config["foo"] = "bar"
    
    to *temporarily* change and test application behavior.
    The problem is, that we don't reset the config changes to their
    original values. As a consequence, test methods are not independent
    and it matters in what order they are executed, whether some
    tests were skipped and issues like #637 appear.
    
    I am chaning this and fixing the tests that rely on this bug.