Add webdav container
This commit is contained in:
parent
c238c281dd
commit
64a3b66efb
3 changed files with 13 additions and 3 deletions
10
.travis.yml
10
.travis.yml
|
@ -1,6 +1,16 @@
|
||||||
language: python
|
language: python
|
||||||
|
|
||||||
|
services:
|
||||||
|
- docker
|
||||||
|
|
||||||
python:
|
python:
|
||||||
- "3.7"
|
- "3.7"
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- docker pull bytemark/webdav
|
||||||
|
- docker run -d --name webdav -e AUTH_TYPE=Basic -e USERNAME=alice -e PASSWORD=secret1234 -p 8585:80 bytemark/webdav
|
||||||
|
- docker ps -a
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- python setup.py develop
|
- python setup.py develop
|
||||||
script:
|
script:
|
||||||
|
|
|
@ -20,9 +20,9 @@ class ClientTestCase(TestCase):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
options = {
|
options = {
|
||||||
'webdav_hostname': 'https://webdav.yandex.ru',
|
'webdav_hostname': 'http://localhost:8585',
|
||||||
'webdav_login': 'webdavclient.test2',
|
'webdav_login': 'alice',
|
||||||
'webdav_password': 'Qwerty123!'
|
'webdav_password': 'secret1234'
|
||||||
}
|
}
|
||||||
self.client = Client(options)
|
self.client = Client(options)
|
||||||
if path.exists(path=self.local_path_dir):
|
if path.exists(path=self.local_path_dir):
|
||||||
|
|
0
tests/webdav/test_connection.py
Normal file
0
tests/webdav/test_connection.py
Normal file
Loading…
Add table
Reference in a new issue