#6 Minor fixes
Merged a month ago by cqi. Opened a month ago by cqi.
cqi/ursa-major minor-fixes  into  master

file modified
+1 -1

@@ -1,5 +1,5 @@ 

  include LICENSE

- include README.rst

+ include README.rst CHANGELOG.rst

  include requirements.txt

  include test-requirements.txt

  recursive-include conf *.conf

file modified
+2 -2

@@ -53,7 +53,7 @@ 

  

  class TestAddModule:

  

-     def setup_method(self):

+     def setup_method(self, method):

          fd, self.tag_config_file = tempfile.mkstemp()

          os.close(fd)

  

@@ -64,7 +64,7 @@ 

          self.get_patcher = patch('requests.get')

          self.mock_get = self.get_patcher.start()

  

-     def teardown_method(self):

+     def teardown_method(self, method):

          self.get_patcher.stop()

          self.ClientSession_patcher.stop()

  

file modified
+2 -2

@@ -33,7 +33,7 @@ 

  

  class TestCheckConfig:

  

-     def setup_method(self):

+     def setup_method(self, method):

          fd, self.tag_config_file = tempfile.mkstemp()

          os.close(fd)

  

@@ -44,7 +44,7 @@ 

          self.get_patcher = patch('requests.get')

          self.mock_get = self.get_patcher.start()

  

-     def teardown_method(self):

+     def teardown_method(self, method):

          self.get_patcher.stop()

          os.unlink(self.tag_config_file)

  

file modified
+2 -2

@@ -33,11 +33,11 @@ 

  class TestRemoveModule:

      """Test CLI command remove-module"""

  

-     def setup_method(self):

+     def setup_method(self, method):

          fd, self.tag_config_file = tempfile.mkstemp()

          os.close(fd)

  

-     def teardown_method(self):

+     def teardown_method(self, method):

          os.unlink(self.tag_config_file)

  

      def write_tag_config_file(self, content):

  • CHANGELOG.rst should be included in sdist package
  • setup_method and teardown_method accepts second argument which is not optional in newer version of pytest.

Pull-Request has been merged by cqi

a month ago