test.test__function   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 13
dl 0
loc 16
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A TestFunctionGetFunctions.test__get_functions__A46AF6E43F() 0 4 1
A TestFunctionGetFunctions.test__get_functions__5C1F8B243A() 0 4 1
1
from fastest.code_assets.function import get_functions
2
from fastest.constants import TestBodies
3
import unittest
4
5
6
class TestFunctionGetFunctions(unittest.TestCase):
7
    def test__get_functions__A46AF6E43F(self):
8
        self.assertIsInstance(get_functions(''), list)
9
        page = TestBodies.GET_FUNCTIONS_TEST_CASE_1
10
        self.assertEqual(get_functions(page), TestBodies.GET_FUNCTIONS_TEST_CASE_1_EXPECT)
11
12
    def test__get_functions__5C1F8B243A(self):
13
        self.assertIsInstance(get_functions(''), list)
14
        page_with_syntax_error = TestBodies.PAGE_WITH_SYNTAX_ERRORS
15
        self.assertEqual(get_functions(page_with_syntax_error), [])
16