Changeset 97e09f4 in flex_extract.git for python/pythontest
- Timestamp:
- Sep 2, 2018, 12:32:04 PM (6 years ago)
- Branches:
- master, ctbto, dev
- Children:
- efa05d7
- Parents:
- f9f7b3f
- Location:
- python/pythontest
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
python/pythontest/.cache/v/cache/lastfailed
rdda0e9d r97e09f4 1 1 { 2 "TestTools.py": true, 2 3 "TestTools.py::TestTools::test_init128": true, 3 4 "TestTools.py::TestTools::test_to_param_id": true -
python/pythontest/TestTools.py
rf9f7b3f r97e09f4 117 117 assert True 118 118 119 @pytest.mark.msuser 119 def test_fail_put_file_to_ecserver(self): 120 ecuid=os.environ['ECUID'] 121 ecgid=os.environ['ECGID'] 122 with pytest.raises(SystemExit) as pytest_wrapped_e: 123 put_file_to_ecserver('TestData/', 'testfil.txt', 124 'ecgate', ecuid, ecgid) 125 assert pytest_wrapped_e.type == SystemExit 126 assert pytest_wrapped_e.value.code == '... ECACCESS-FILE-PUT FAILED!' 127 120 128 def test_success_put_file_to_ecserver(self): 129 ecuid=os.environ['ECUID'] 130 ecgid=os.environ['ECGID'] 131 result = put_file_to_ecserver('TestData/', 'testfile.txt', 132 'ecgate', ecuid, ecgid) 133 assert result == '' 134 135 @pytest.mark.msuser_pw 136 def test_fullsuccess_put_file_to_ecserver(self): 121 137 ecuid=os.environ['ECUID'] 122 138 ecgid=os.environ['ECGID'] … … 134 150 def test_success_submit_job_to_ecserver(self): 135 151 result = submit_job_to_ecserver('ecgate', 'TestData/testfile.txt') 136 assert result == 0 137 152 assert result.strip().isdigit() == True 138 153 139 154 -
python/pythontest/pytest.ini
rf9f7b3f r97e09f4 2 2 [pytest] 3 3 markers = 4 m emberstate: Test that can be executed only as a member-state user. Password required.4 msuser_pw: Test that can be executed only as a member-state user. Password required.
Note: See TracChangeset
for help on using the changeset viewer.