diff --git a/.codeclimate.yml b/.codeclimate.yml new file mode 100644 index 0000000..46d2757 --- /dev/null +++ b/.codeclimate.yml @@ -0,0 +1,3 @@ +engines: + pep8: + enabled: true \ No newline at end of file diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..68859ad --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[pep8] +max-line-length = 120 diff --git a/tests.py b/tests.py index e547ae1..c733cf0 100644 --- a/tests.py +++ b/tests.py @@ -37,7 +37,6 @@ def test_execute(mock_loop_root): mock_loop_root.assert_called_once_with() @staticmethod - #@patch('logging.info') @patch('script.shutil.rmtree') @patch('script.arrow.get') def test_remove_path(mock_arrow_get, mock_removetree): @@ -50,7 +49,6 @@ def test_remove_path(mock_arrow_get, mock_removetree): mock_arrow_get.assert_called_once_with(entry.stat().st_mtime) mock_removetree.assert_called_once_with(entry.path) - # mock_log.assert_called_once() def test_is_dir(self): """