Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions ext/opentelemetry-ext-azure-monitor/tests/test_package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright 2019, OpenTelemetry Authors
#
# 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 unittest

import pkg_resources

from opentelemetry.ext.azure_monitor import version


class TestVersion(unittest.TestCase):
def test_version(self):
"""Check that the version number is normalized."""
self.assertEqual(
version.__version__,
str(pkg_resources.parse_version(version.__version__)),
)
28 changes: 28 additions & 0 deletions ext/opentelemetry-ext-http-requests/tests/test_package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright 2019, OpenTelemetry Authors
#
# 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 unittest

import pkg_resources

from opentelemetry.ext.http_requests import version


class TestVersion(unittest.TestCase):
def test_version(self):
"""Check that the version number is normalized."""
self.assertEqual(
version.__version__,
str(pkg_resources.parse_version(version.__version__)),
)
28 changes: 28 additions & 0 deletions ext/opentelemetry-ext-jaeger/tests/test_package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright 2019, OpenTelemetry Authors
#
# 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 unittest

import pkg_resources

from opentelemetry.ext.jaeger import version


class TestVersion(unittest.TestCase):
def test_version(self):
"""Check that the version number is normalized."""
self.assertEqual(
version.__version__,
str(pkg_resources.parse_version(version.__version__)),
)
28 changes: 28 additions & 0 deletions ext/opentelemetry-ext-opentracing-shim/tests/test_package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright 2019, OpenTelemetry Authors
#
# 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 unittest

import pkg_resources

from opentelemetry.ext.opentracing_shim import version


class TestVersion(unittest.TestCase):
def test_version(self):
"""Check that the version number is normalized."""
self.assertEqual(
version.__version__,
str(pkg_resources.parse_version(version.__version__)),
)
28 changes: 28 additions & 0 deletions ext/opentelemetry-ext-wsgi/test_package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright 2019, OpenTelemetry Authors
#
# 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 unittest

import pkg_resources

from opentelemetry.ext.wsgi import version


class TestVersion(unittest.TestCase):
def test_version(self):
"""Check that the version number is normalized."""
self.assertEqual(
version.__version__,
str(pkg_resources.parse_version(version.__version__)),
)
28 changes: 28 additions & 0 deletions opentelemetry-api/tests/test_package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright 2019, OpenTelemetry Authors
#
# 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 unittest

import pkg_resources

from opentelemetry.util import version


class TestVersion(unittest.TestCase):
def test_version(self):
"""Check that the version number is normalized."""
self.assertEqual(
version.__version__,
str(pkg_resources.parse_version(version.__version__)),
)
28 changes: 28 additions & 0 deletions opentelemetry-sdk/tests/test_package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright 2019, OpenTelemetry Authors
#
# 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 unittest

import pkg_resources

from opentelemetry.sdk import version


class TestVersion(unittest.TestCase):
def test_version(self):
"""Check that the version number is normalized."""
self.assertEqual(
version.__version__,
str(pkg_resources.parse_version(version.__version__)),
)