From 303827c514f4a10433f62d4053054ed02ebd1a7b Mon Sep 17 00:00:00 2001 From: Pino de Candia <32303022+pinodeca@users.noreply.github.com> Date: Mon, 18 Dec 2017 16:09:16 -0600 Subject: [PATCH] Oslo test skeleton. --- tatu/__init__.py | 19 +++++++++++++++++++ tatu/tests/base.py | 23 +++++++++++++++++++++++ tatu/tests/test_tatu.py | 28 ++++++++++++++++++++++++++++ 3 files changed, 70 insertions(+) create mode 100644 tatu/tests/base.py create mode 100644 tatu/tests/test_tatu.py diff --git a/tatu/__init__.py b/tatu/__init__.py index e69de29..60e2814 100644 --- a/tatu/__init__.py +++ b/tatu/__init__.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- + +# 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 pbr.version + + +__version__ = pbr.version.VersionInfo( + 'tatu').version_string() \ No newline at end of file diff --git a/tatu/tests/base.py b/tatu/tests/base.py new file mode 100644 index 0000000..185fd6f --- /dev/null +++ b/tatu/tests/base.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- + +# Copyright 2010-2011 OpenStack Foundation +# Copyright (c) 2013 Hewlett-Packard Development Company, L.P. +# +# 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. + +from oslotest import base + + +class TestCase(base.BaseTestCase): + + """Test case base class for all unit tests.""" \ No newline at end of file diff --git a/tatu/tests/test_tatu.py b/tatu/tests/test_tatu.py new file mode 100644 index 0000000..7c6105b --- /dev/null +++ b/tatu/tests/test_tatu.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- + +# 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. + +""" +test_tatu +---------------------------------- + +Tests for `tatu` module. +""" + +from tatu.tests import base + + +class TestTatu(base.TestCase): + + def test_something(self): + pass \ No newline at end of file