Esempio n. 1
0
 def test_install_snippet_with_non_stable_risk_level(self):
     result = template_utils.install_snippet("test", "latest", "edge", "")
     self.assertTrue(result, "sudo snap install test --edge")
Esempio n. 2
0
    def test_install_snippet(self):

        result = template_utils.install_snippet("spotify", "latest", "stable",
                                                "")
        self.assertTrue(result, "sudo snap install spotify")
Esempio n. 3
0
 def test_install_snippet_with_classic(self):
     result = template_utils.install_snippet("skype", "latest", "stable",
                                             "classic")
     self.assertTrue(result, "sudo snap install skype --classic")
Esempio n. 4
0
 def test_install_snippet_with_classic_and_default_track(self):
     result = template_utils.install_snippet("node", "10", "stable",
                                             "classic")
     self.assertTrue(
         result, "sudo snap install node --channel=10/stable --classic")