Add webdav container

This commit is contained in:
Evgeny Ezhov 2019-06-21 15:20:25 +03:00
parent c238c281dd
commit 64a3b66efb
3 changed files with 13 additions and 3 deletions

View file

@ -1,6 +1,16 @@
language: python
services:
- docker
python:
- "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:
- python setup.py develop
script:

View file

@ -20,9 +20,9 @@ class ClientTestCase(TestCase):
def setUp(self):
options = {
'webdav_hostname': 'https://webdav.yandex.ru',
'webdav_login': 'webdavclient.test2',
'webdav_password': 'Qwerty123!'
'webdav_hostname': 'http://localhost:8585',
'webdav_login': 'alice',
'webdav_password': 'secret1234'
}
self.client = Client(options)
if path.exists(path=self.local_path_dir):

View file