Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93779181
test.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Dec 1, 10:46
Size
308 B
Mime Type
text/x-python
Expires
Tue, Dec 3, 10:46 (2 d)
Engine
blob
Format
Raw Data
Handle
22703165
Attached To
rPHJENKINS Jenkins examples
test.py
View Options
#!/usr/bin/env python3
import
unittest
,
pytest
import
mylib
class
Test
(
unittest
.
TestCase
):
def
test_return
(
self
):
self
.
assertTrue
(
mylib
.
myfunc
()
==
'test'
)
self
.
assertTrue
(
mylib
.
myfunc
()
!=
'test'
)
if
__name__
==
'__main__'
:
pytest
.
main
([
'./test.py'
,
'--junitxml'
,
'results.xml'
])
Event Timeline
Log In to Comment