Skip to content

Commit 39e83f6

Browse files
committed
Splitting the tests in files
1 parent 94e79e6 commit 39e83f6

File tree

2 files changed

+20
-14
lines changed

2 files changed

+20
-14
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import unittest
2+
import os
3+
import shutil
4+
import tempfile
5+
6+
from pluginloader.loader import PluginLoader
7+
8+
9+
@unittest.skip('Not ready yet')
10+
class plugins_in_directory(unittest.TestCase):
11+
def setUp(self):
12+
self.plugin_dir = tempfile.mkdtemp()
13+
14+
def tearDown(self):
15+
shutil.rmtree(self.plugin_dir)
16+
17+
def test_load_file(self):
18+
sut = PluginLoader()
19+
20+
sut.load_all()

tests/acceptance/test_loader.py renamed to tests/acceptance/test_file_loader.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,3 @@ def test_namedparameters_for_constructor(self):
6565
sut.load_file(self.plugin_file.name, kwargs={'a': 5})
6666

6767
self.assertEquals(5, sut.plugins['Foo'].a)
68-
69-
70-
@unittest.skip('Not ready yet')
71-
class plugins_in_directory(unittest.TestCase):
72-
def setUp(self):
73-
self.plugin_dir = tempfile.mkdtemp()
74-
75-
def tearDown(self):
76-
shutil.rmtree(self.plugin_dir)
77-
78-
def test_load_file(self):
79-
sut = PluginLoader()
80-
81-
sut.load_all()

0 commit comments

Comments
 (0)