Example #1
0
    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"
Example #2
0
    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"
Example #3
0
    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
Example #4
0
    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
Example #5
0
    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'