From 9c0192b9499f3989801791200ffb4194d51812f0 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Tue, 8 Mar 2016 09:41:06 +0200
Subject: [PATCH] - Misunderstood setup.py aliases, removed test alias. -
 Renamed test file and function because otherwise test detection fails. - Set
 py.test to verbose. - Moved flake8 settings from tox.ini to setup.cfg (in
 case of moving away from   tox).

---
 setup.cfg                                                  | 7 ++++---
 .../{basic_assertions_test.py => test_basic_assertions.py} | 2 +-
 tox.ini                                                    | 6 +-----
 3 files changed, 6 insertions(+), 9 deletions(-)
 rename tests/{basic_assertions_test.py => test_basic_assertions.py} (85%)

diff --git a/setup.cfg b/setup.cfg
index 79bc678..0ab5908 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,5 +1,6 @@
 [bdist_wheel]
-# This flag says that the code is written to work on both Python 2 and Python
-# 3. If at all possible, it is good practice to do this. If you cannot, you
-# will need to generate wheels for each Python version that you support.
 universal=1
+
+[flake8]
+ignore=F403
+exclude = .tox,*.egg,build,data,unshare/constants.py
diff --git a/tests/basic_assertions_test.py b/tests/test_basic_assertions.py
similarity index 85%
rename from tests/basic_assertions_test.py
rename to tests/test_basic_assertions.py
index 27c0a73..fc1acdb 100755
--- a/tests/basic_assertions_test.py
+++ b/tests/test_basic_assertions.py
@@ -1,7 +1,7 @@
 import unshare
 
 
-def import_assestions():
+def test_import_assestions():
     for macro in 'CLONE_NEWUTS', 'MS_SHARED':
         assert macro in dir(unshare)
     for function in 'clone', 'pivot_root':
diff --git a/tox.ini b/tox.ini
index bcfe232..9992870 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,7 +1,3 @@
-[flake8]
-ignore=F403
-exclude = .tox,*.egg,build,data,unshare/constants.py
-
 [tox]
 envlist = py{2,3}
 
@@ -18,4 +14,4 @@ commands =
     check-manifest --ignore tox.ini,tests*
     python setup.py check -m -r -s
     flake8 .
-    py.test
+    py.test --verbose
-- 
GitLab