Verified Commit bda1679a authored by Jan Koppe's avatar Jan Koppe
Browse files

don't test tags, don't log credentials in tests

parent 452895d4
Pipeline #1408 passed with stages
in 41 seconds
......@@ -8,6 +8,8 @@ stages:
lint:
stage: test
except:
- tags
before_script:
- pip install flake8
script:
......@@ -15,6 +17,8 @@ lint:
.unittest: &unittest
stage: test
except:
- tags
before_script:
- pip install coverage
script:
......
from opencast_externalapi import ExternalApi
import os
import logging
logger = logging.getLogger()
def build_client():
host = os.getenv('OPENCAST_HOST', 'https://develop.opencast.org')
user = os.getenv('OPENCAST_USER', 'opencast_system_account')
password = os.getenv('OPENCAST_PASSWORD', 'CHANGE_ME')
logger.debug('user: %s, pass: %s, host: %s' % (user, password, host))
return ExternalApi(host=host, user=user, password=password)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment