Skip to content
Snippets Groups Projects
Commit e163e732 authored by Joscha Schmiedt's avatar Joscha Schmiedt
Browse files

STY: Fix style errors in unittests

parent e6e0eadf
No related branches found
No related tags found
1 merge request!143Release 0.15.0
Pipeline #49469 passed with warnings
......@@ -27,18 +27,21 @@
from linkahead import configure_connection
from linkahead.common.models import _ConcreteProperty
from linkahead.connection.mockup import MockUpServerConnection
from pytest import raises
# pylint: disable=missing-docstring
def eq(a, b):
assert a == b
def there(a):
assert a is not None
def tru(a):
assert a
from pytest import raises
def setup_module():
there(_ConcreteProperty)
......
......@@ -39,19 +39,20 @@ from linkahead.connection.mockup import (MockUpResponse, MockUpServerConnection,
from linkahead.connection.utils import make_uri_path, quote, urlencode
from linkahead.exceptions import (ConfigurationError, LoginFailedError,
LinkAheadConnectionError)
from pytest import raises
def eq(a, b):
assert a == b
def there(a):
assert a is not None
def tru(a):
assert a
from pytest import raises
def setup_function(function):
configure_connection(url="http://localhost:8888/some/path",
......@@ -144,7 +145,6 @@ def test_configure_connection_bad_url():
def test_connection_interface():
with raises(TypeError) as cm:
CaosDBServerConnection()
......
......@@ -26,17 +26,6 @@
from __future__ import unicode_literals, print_function
from pytest import raises
def eq(a,b):
assert a == b
def there(a):
assert a is not None
def tru(a):
assert a
from pytest import raises
from linkahead.exceptions import ConfigurationError, LoginFailedError
from linkahead.connection.utils import parse_auth_token, auth_token_to_cookie
from linkahead.connection.connection import (
......@@ -49,6 +38,18 @@ from linkahead.connection.authentication.interface import CredentialsAuthenticat
from linkahead import execute_query
def eq(a, b):
assert a == b
def there(a):
assert a is not None
def tru(a):
assert a
def setup_module():
_reset_config()
......
......@@ -26,6 +26,7 @@ from linkahead import Entity, RecordType, configure_connection
from linkahead.connection.mockup import MockUpServerConnection
# pylint: disable=missing-docstring
def setup_module():
assert RecordType is not None
configure_connection(url="unittests", username="testuser",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment