Skip to content

Commit

Permalink
add test code
Browse files Browse the repository at this point in the history
  • Loading branch information
m-tmatma committed Sep 5, 2021
1 parent 9e1bf87 commit 45115b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ def pytest_addoption(parser):

@pytest.fixture
def target(request):
'''specify target IP Address'''
return request.config.getoption('--target')
7 changes: 6 additions & 1 deletion tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,9 @@ def test_1():

def test_target(target):
print(target)
assert target == 'hogehoge'
#assert target == 'hogehoge'

# content of test_tmpdir.py
def test_needsfiles(tmpdir):
print(tmpdir)
#assert 0

0 comments on commit 45115b9

Please sign in to comment.