tests.integration.test_deploy_model_ssl_off_auth_off   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 12
dl 0
loc 21
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A TestDeployModelSSLOffAuthOff.test_deploy_ssl_off_auth_off() 0 16 2
1
from . import integ_test_base
2
3
4
class TestDeployModelSSLOffAuthOff(integ_test_base.IntegTestBase):
5
    def test_deploy_ssl_off_auth_off(self):
6
        # Uncomment the following line to preserve
7
        # test case output and other files (config, state, ect.)
8
        # in system temp folder.
9
        # self.set_delete_temp_folder(False)
10
11
        self.deploy_models(self._get_username(), self._get_password())
12
13
        conn = self._get_connection()
14
15
        models = ["PCA", "Sentiment%20Analysis", "ttest", "anova"]
16
        for m in models:
17
            conn.request("GET", f"/endpoints/{m}")
18
            m_request = conn.getresponse()
19
            self.assertEqual(200, m_request.status)
20
            m_request.read()
21