Initial commit
[ta/storage.git] / partfs_rootdisk / tox.ini
diff --git a/partfs_rootdisk/tox.ini b/partfs_rootdisk/tox.ini
new file mode 100644 (file)
index 0000000..0a78f3c
--- /dev/null
@@ -0,0 +1,33 @@
+# Copyright 2019 Nokia
+  
+# 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.
+[tox]
+envlist = py27-pytest,pylint
+skipsdist = True
+
+[testenv]
+basepython = python2.7
+
+commands = pytest -vv \
+           --pep8 \
+           --basetemp={envtmpdir} \
+           {posargs:./tests}
+
+deps=pytest
+     jinja2
+     ansible
+     pytest-pep8
+
+[pytest]
+cache_dir = .pytest-cache
+pep8maxlinelength = 100