From 5622c1f959fac44e325768b6b3d9a1961c366dd2 Mon Sep 17 00:00:00 2001 From: Clay Gerrard Date: Wed, 13 Sep 2017 09:58:10 -0600 Subject: [PATCH] Test placeholder for dispersion_report module This module was recently moved from bin/ and the execute bit stuck around and wasn't imported by our test suite - which throws off accountability in coverage reporting. Remove the execute bit and add a placeholder unittest module. Related-Change-Id: Ie0d52a1a54fc152bb72cbb3f84dcc36a8dad972a Change-Id: Id9e678c2460cc889f682c5566a4418160db7878f --- swift/cli/dispersion_report.py | 0 test/unit/cli/test_dispersion_report.py | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+) mode change 100755 => 100644 swift/cli/dispersion_report.py create mode 100644 test/unit/cli/test_dispersion_report.py diff --git a/swift/cli/dispersion_report.py b/swift/cli/dispersion_report.py old mode 100755 new mode 100644 diff --git a/test/unit/cli/test_dispersion_report.py b/test/unit/cli/test_dispersion_report.py new file mode 100644 index 0000000000..0a6bd83d91 --- /dev/null +++ b/test/unit/cli/test_dispersion_report.py @@ -0,0 +1,21 @@ +# Licensed under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy +# of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +import unittest + +from swift.cli import dispersion_report + + +class TestDispersionReport(unittest.TestCase): + + def test_placeholder(self): + self.assertTrue(callable(dispersion_report.main))