Skip to content
Snippets Groups Projects

Resolve "Remove nose.tools dependency"

Files

+ 11
3
@@ -26,11 +26,19 @@
@@ -26,11 +26,19 @@
@author: tf
@author: tf
"""
"""
import os
import os
import caosdb as db
import linkahead as db
from nose.tools import nottest, assert_equal, assert_is_not_none
import pytest
from pytest import raises
from pytest import raises
 
def assert_equal(a, b):
 
assert a == b
 
 
 
def assert_is_not_none(a):
 
assert a is not None
 
 
def setup_module():
def setup_module():
f = open(file_path, "w")
f = open(file_path, "w")
f.write("hello, world!")
f.write("hello, world!")
@@ -218,7 +226,7 @@ def test_file_file_is_invalid():
@@ -218,7 +226,7 @@ def test_file_file_is_invalid():
assert ee.msg == "Affiliation is not defined for this child-parent constellation."
assert ee.msg == "Affiliation is not defined for this child-parent constellation."
@nottest
@pytest.mark.skip()
def test_query_party_example():
def test_query_party_example():
try:
try:
organisation = db.RecordType(name="Organisation").insert()
organisation = db.RecordType(name="Organisation").insert()
Loading