initial
This commit is contained in:
commit
e80fe6c108
18 changed files with 3633 additions and 0 deletions
32
tests/conftest.py
Normal file
32
tests/conftest.py
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
__author__ = 'designerror'
|
||||
|
||||
from hamcrest.core.base_matcher import BaseMatcher
|
||||
from hamcrest.core.helpers.hasmethod import hasmethod
|
||||
|
||||
class Valid(BaseMatcher):
|
||||
def _matches(self, item):
|
||||
return False if not hasmethod(item, 'valid') else item.valid()
|
||||
|
||||
class NotValid(BaseMatcher):
|
||||
def _matches(self, item):
|
||||
return False if not hasmethod(item, 'valid') else not item.valid()
|
||||
|
||||
class Success(BaseMatcher):
|
||||
def _matches(self, item):
|
||||
return item
|
||||
|
||||
class NotSuccess(BaseMatcher):
|
||||
def _matches(self, item):
|
||||
return not item
|
||||
|
||||
def valid():
|
||||
return Valid()
|
||||
|
||||
def not_valid():
|
||||
return NotValid()
|
||||
|
||||
def success():
|
||||
return Success()
|
||||
|
||||
def not_success():
|
||||
return NotSuccess()
|
||||
1
tests/webdav/test_authenticate.py
Normal file
1
tests/webdav/test_authenticate.py
Normal file
|
|
@ -0,0 +1 @@
|
|||
__author__ = 'designerror'
|
||||
11
tests/webdav/test_connection.py
Normal file
11
tests/webdav/test_connection.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
__author__ = 'designerror'
|
||||
|
||||
import allure
|
||||
#from hamcrest import *
|
||||
|
||||
class TestRequiredOptions:
|
||||
|
||||
def test_without_webdav_hostname(self):
|
||||
options = { 'webdav_server': "https://webdav.yandex.ru"}
|
||||
allure.attach('options', options.__str__())
|
||||
assert 1
|
||||
1
tests/webdav/test_methods.py
Normal file
1
tests/webdav/test_methods.py
Normal file
|
|
@ -0,0 +1 @@
|
|||
__author__ = 'designerror'
|
||||
Loading…
Add table
Add a link
Reference in a new issue