def test_get_app_list_2(self): self.test_data.apps = [self.app1, self.app2] t = gl.get_app_list() assert t, { "normalapp": {"onboardingStatus": "BestEffort", "parentApp": None}, "normalapp2": {"onboardingStatus": "BestEffort", "parentApp": None}, }
def test_guess_onboarding_status_normal(self): self.test_data.apps = [self.app1, self.app2, self.app3] parents = gl.get_parents_list() apps = gl.get_app_list() changed_paths = ["data/services/normalapp2"] t = gl.guess_onboarding_status(changed_paths, apps, parents) assert t == "BestEffort"
def test_guess_onboarding_status_parent(self): self.test_data.apps = [self.app1, self.app2, self.app3, self.app4] parents = gl.get_parents_list() apps = gl.get_app_list() changed_paths = ["data/services/parentapp/test"] t = gl.guess_onboarding_status(changed_paths, apps, parents) assert t == "OnBoarded"
def test_guess_onboarding_status_key_error(self): self.test_data.apps = [self.app1, self.app2, self.app3] parents = gl.get_parents_list() apps = gl.get_app_list() changed_paths = ["data/services/normalapp3"] t = gl.guess_onboarding_status(changed_paths, apps, parents) assert t is None
def test_guess_onboarding_status_no_app(self): self.test_data.apps = [self.app1, self.app2, self.app3] parents = gl.get_parents_list() apps = gl.get_app_list() changed_paths = ["data/test/test"] t = gl.guess_onboarding_status(changed_paths, apps, parents) assert t is None
def test_guess_onboarding_status_child(self): self.test_data.apps = [self.app1, self.app2, self.app3] parents = gl.get_parents_list() apps = gl.get_app_list() changed_paths = ['data/services/parentapp/childapp'] t = gl.guess_onboarding_status(changed_paths, apps, parents) assert t == 'BestEffort'
def test_get_app_list(self): self.test_data.apps = [self.app1] t = gl.get_app_list() assert t == { 'normalapp': { 'onboardingStatus': 'BestEffort', 'parentApp': None } }