Skip to content
Snippets Groups Projects
Commit 1a8dbdeb authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[tests] Remove nose dependency

beat.editor will be using pytest
parent 97e6d088
No related branches found
No related tags found
No related merge requests found
...@@ -25,11 +25,12 @@ ...@@ -25,11 +25,12 @@
# # # #
############################################################################### ###############################################################################
# test the utils.py file """
# (mostly python file generation via jinja2 templates) Test the utils.py file
"""
import os import os
import nose.tools
import pkg_resources import pkg_resources
from .. import utils from .. import utils
...@@ -41,7 +42,7 @@ def test_generate_empty_database(): ...@@ -41,7 +42,7 @@ def test_generate_empty_database():
database = utils.generate_database() database = utils.generate_database()
with open(os.path.join(DATA_PATH, "empty_database.py")) as db_file: with open(os.path.join(DATA_PATH, "empty_database.py")) as db_file:
empty_db = db_file.read() empty_db = db_file.read()
nose.tools.eq_(database, empty_db) assert database == empty_db
def test_generate_empty_algorithm(): def test_generate_empty_algorithm():
...@@ -52,11 +53,11 @@ def test_generate_empty_algorithm(): ...@@ -52,11 +53,11 @@ def test_generate_empty_algorithm():
algorithm = utils.generate_algorithm(alg["contents"]) algorithm = utils.generate_algorithm(alg["contents"])
with open(os.path.join(DATA_PATH, "empty_algorithm.py")) as db_file: with open(os.path.join(DATA_PATH, "empty_algorithm.py")) as db_file:
empty_alg = db_file.read() empty_alg = db_file.read()
nose.tools.eq_(algorithm, empty_alg) assert algorithm == empty_alg
def test_generate_empty_library(): def test_generate_empty_library():
library = utils.generate_library() library = utils.generate_library()
with open(os.path.join(DATA_PATH, "empty_library.py")) as db_file: with open(os.path.join(DATA_PATH, "empty_library.py")) as db_file:
empty_lib = db_file.read() empty_lib = db_file.read()
nose.tools.eq_(library, empty_lib) assert library == empty_lib
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment