Merge lp:~elopio/osqa-sst-helpers/temp-soup-integration into lp:~online-services-qa/osqa-sst-helpers/canonical-identity-provider
Proposed by
Leo Arias
Status: | Needs review |
---|---|
Proposed branch: | lp:~elopio/osqa-sst-helpers/temp-soup-integration |
Merge into: | lp:~online-services-qa/osqa-sst-helpers/canonical-identity-provider |
Prerequisite: | lp:~elopio/osqa-sst-helpers/temp-soup-unit-tests |
Diff against target: |
109 lines (+25/-32) 3 files modified
sso_sst_helpers/selftests/integration/test_sst_api.html (+0/-8) sso_sst_helpers/selftests/integration/test_sst_api.py (+21/-3) sso_sst_helpers/selftests/unit/test_log_in.py (+4/-21) |
To merge this branch: | bzr merge lp:~elopio/osqa-sst-helpers/temp-soup-integration |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Vincent Ladeuil (community) | Approve | ||
Review via email: mp+132570@code.launchpad.net |
Commit message
Use temp files for the integration tests.
Description of the change
Use temp files for the integration tests.
To post a comment you must log in.
49 + def go_to(self, string_html): NamedTemporaryF ile(delete= False) string_ html) go_to(' file:// ' + page.name) page.name)
50 + page = tempfile.
51 + page.write(
52 + page.close()
53 + sst.actions.
54 + os.remove(
could be written: NamedTemporaryF ile(delete= False) (os.remove, page.name)
50 + page = tempfile.
self.addCleanup
so that the remove will be done even if the test fails.