Browse Source

Tidy up tests and circle config

tags/v0.1.1
Chris Smith 7 years ago
parent
commit
c4ab2689d1
3 changed files with 4 additions and 13 deletions
  1. 1
    6
      circle.yml
  2. 3
    0
      requirements.txt
  3. 0
    7
      test.py

+ 1
- 6
circle.yml View File

@@ -5,12 +5,7 @@ machine:
5 5
   services:
6 6
     - docker
7 7
 
8
-dependencies:
9
-  pre:
10
-    - pip install nose pylint
11
-
12 8
 test:
13
-  override:
9
+  post:
14 10
     - pylint -d invalid-name docker-rerun
15
-    - nosetests test.py
16 11
 

+ 3
- 0
requirements.txt View File

@@ -0,0 +1,3 @@
1
+nose
2
+pylint
3
+

+ 0
- 7
test.py View File

@@ -14,10 +14,6 @@ class RerunTest(unittest.TestCase):
14 14
 
15 15
 
16 16
     def test_command_matches(self):
17
-        """
18
-        Tests that the command used to start a docker container exactly matches
19
-        that returned by ./docker-rerun --dry-run.
20
-        """
21 17
         commands = [
22 18
             'docker run --name=test123 -d hello-world',
23 19
             'docker run --name=test123 --restart=always -d hello-world',
@@ -37,6 +33,3 @@ class RerunTest(unittest.TestCase):
37 33
                 self.assertEqual(output[3], command)
38 34
                 self._run(['docker', 'rm', '-f', 'test123'])
39 35
 
40
-
41
-if __name__ == '__main__':
42
-    unittest.main()

Loading…
Cancel
Save