From d7265e672035c29b486929caf49d5a9246421d8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Thu, 15 Nov 2018 23:52:39 +0000 Subject: tests: simplify and cleanup. * Remove the __main__ blocks as the tests should not be executable by themselves. * Use absltest everywhere instead of a mixture of unittest/absltest (via parameterized). * Only modify import path once. * Cleanup pylint warnings, by disabling those that are not useful, and fixing those that are. --- test/__init__.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/__init__.py (limited to 'test/__init__.py') diff --git a/test/__init__.py b/test/__init__.py new file mode 100644 index 0000000..8865d55 --- /dev/null +++ b/test/__init__.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +"""Add the top-level module to the PYTHONPATH.""" + +__author__ = 'Diego Elio Pettenò' +__email__ = 'flameeyes@flameeyes.eu' +__copyright__ = 'Copyright © 2018, Diego Elio Pettenò' +__license__ = 'MIT' + +import os +import sys + +sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) -- cgit v1.2.3