From 1a8dbdeb503fc3d5dfbdcf6db1f9d20c862a03b5 Mon Sep 17 00:00:00 2001
From: Samuel Gaist <samuel.gaist@idiap.ch>
Date: Thu, 10 Jan 2019 15:30:27 +0100
Subject: [PATCH] [tests] Remove nose dependency

beat.editor will be using pytest
---
 beat/editor/test/test_utils.py | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/beat/editor/test/test_utils.py b/beat/editor/test/test_utils.py
index 6bc75618..256c23f2 100644
--- a/beat/editor/test/test_utils.py
+++ b/beat/editor/test/test_utils.py
@@ -25,11 +25,12 @@
 #                                                                             #
 ###############################################################################
 
-# test the utils.py file
-# (mostly python file generation via jinja2 templates)
+"""
+Test the utils.py file
+"""
+
 import os
 
-import nose.tools
 import pkg_resources
 from .. import utils
 
@@ -41,7 +42,7 @@ def test_generate_empty_database():
     database = utils.generate_database()
     with open(os.path.join(DATA_PATH, "empty_database.py")) as db_file:
         empty_db = db_file.read()
-        nose.tools.eq_(database, empty_db)
+        assert database == empty_db
 
 
 def test_generate_empty_algorithm():
@@ -52,11 +53,11 @@ def test_generate_empty_algorithm():
     algorithm = utils.generate_algorithm(alg["contents"])
     with open(os.path.join(DATA_PATH, "empty_algorithm.py")) as db_file:
         empty_alg = db_file.read()
-        nose.tools.eq_(algorithm, empty_alg)
+        assert algorithm == empty_alg
 
 
 def test_generate_empty_library():
     library = utils.generate_library()
     with open(os.path.join(DATA_PATH, "empty_library.py")) as db_file:
         empty_lib = db_file.read()
-        nose.tools.eq_(library, empty_lib)
+        assert library == empty_lib
-- 
GitLab