File: test_simple.py

package info (click to toggle)
python-azure 20201208%2Bgit-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,437,920 kB
  • sloc: python: 4,287,452; javascript: 269; makefile: 198; sh: 187; xml: 106
file content (15 lines) | stat: -rw-r--r-- 697 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Testing Azure Packages has some additional complication/reading required.
# Reference https://github.com/Azure/azure-sdk-for-python/wiki/Contributing-to-the-tests
# Pytest should be leveraged to test your project.

from devtools_testutils import AzureMgmtTestCase
from azure.template import template_main

# this test case highlights that there are some additional Test capabilities present in devtools_testutils
# as a package owner you are not required to use these. Standard PyTest implementation will work.
class TemplateTest(AzureMgmtTestCase):
    def setUp(self):
        super(TemplateTest, self).setUp()

    def test_case_default(self):
        self.assertEqual(template_main(), True)