Parcourir la source

tests: add docstrings & print_function (for Python 3)

Bug: https://crbug.com/gerrit/10418
Change-Id: Id98183597a9b0201ca98ec0bf5033a5f5ac6bda2
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/232892
Tested-by: Mike Frysinger <vapier@google.com>
Reviewed-by: David Pursehouse <dpursehouse@collab.net>
Mike Frysinger il y a 6 ans
Parent
commit
87deaefd86
4 fichiers modifiés avec 16 ajouts et 0 suppressions
  1. 4 0
      tests/test_git_command.py
  2. 4 0
      tests/test_git_config.py
  3. 4 0
      tests/test_project.py
  4. 4 0
      tests/test_wrapper.py

+ 4 - 0
tests/test_git_command.py

@@ -14,6 +14,10 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+"""Unittests for the git_command.py module."""
+
+from __future__ import print_function
+
 import unittest
 
 import git_command

+ 4 - 0
tests/test_git_config.py

@@ -14,6 +14,10 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+"""Unittests for the git_config.py module."""
+
+from __future__ import print_function
+
 import os
 import unittest
 

+ 4 - 0
tests/test_project.py

@@ -14,6 +14,10 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+"""Unittests for the project.py module."""
+
+from __future__ import print_function
+
 import unittest
 
 import project

+ 4 - 0
tests/test_wrapper.py

@@ -14,6 +14,10 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+"""Unittests for the wrapper.py module."""
+
+from __future__ import print_function
+
 import os
 import unittest