fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Show toolbar tooltips with access keys for buttons without description.
[redakcja.git]
/
src
/
wiki_img
/
tests.py
diff --git
a/src/wiki_img/tests.py
b/src/wiki_img/tests.py
index
6577737
..
cf3d72b
100644
(file)
--- a/
src/wiki_img/tests.py
+++ b/
src/wiki_img/tests.py
@@
-1,4
+1,6
@@
-from nose.tools import *
+# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
import wiki.models as models
import shutil
import tempfile
import wiki.models as models
import shutil
import tempfile
@@
-6,7
+8,7
@@
import tempfile
class TestStorageBase:
def setUp(self):
class TestStorageBase:
def setUp(self):
- self.dirpath = tempfile.mkdtemp(prefix='
nose
test_')
+ self.dirpath = tempfile.mkdtemp(prefix='
redakcja_
test_')
def tearDown(self):
shutil.rmtree(self.dirpath)
def tearDown(self):
shutil.rmtree(self.dirpath)
@@
-16,4
+18,4
@@
class TestDocumentStorage(TestStorageBase):
def test_storage_empty(self):
storage = models.DocumentStorage(self.dirpath)
def test_storage_empty(self):
storage = models.DocumentStorage(self.dirpath)
-
eq_
(storage.all(), [])
+
self.assertEqual
(storage.all(), [])