Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
try to use non-auth for CouchDB test
Browse files Browse the repository at this point in the history
  • Loading branch information
binux committed Jul 26, 2020
1 parent 3e261d3 commit 9d17460
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
sudo: required
language: python
cache: pip
python:
Expand All @@ -10,7 +9,7 @@ services:
- docker
- mongodb
- rabbitmq
- redis-server
- redis
- mysql
# - elasticsearch
- postgresql
Expand Down
8 changes: 0 additions & 8 deletions tests/test_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -759,10 +759,6 @@ class TestCouchDBTaskDB(TaskDBCase, unittest.TestCase):
def setUpClass(self):
# create a test admin user
import requests
requests.put('http://localhost:5984/_node/_local/_config/admins/test',
data='"password"')
os.environ["COUCHDB_USER"] = "test"
os.environ["COUCHDB_PASSWORD"] = "password"
self.taskdb = database.connect_database(
'couchdb+taskdb://localhost:5984/'
)
Expand All @@ -773,10 +769,6 @@ def tearDownClass(self):
# remove the test admin user
import requests
from requests.auth import HTTPBasicAuth
requests.delete('http://localhost:5984/_node/_local/_config/admins/test',
auth=HTTPBasicAuth('test', 'password'))
del os.environ["COUCHDB_USER"]
del os.environ["COUCHDB_PASSWORD"]
self.taskdb.drop_database()

def test_create_project(self):
Expand Down

0 comments on commit 9d17460

Please sign in to comment.