def test_get_flavor_file_exists(self, fs): flavor_contents = """ data: - SX48.8 - SX48.12 """ flavor_file = "/tmp/.flavor.yml" fs.create_file(flavor_file, contents=flavor_contents) if os.name != "nt": assert lambdafunc.get_flavor() == ["SX48.8", "SX48.12"]
def test_get_flavor_file_exists(self, fs): flavor_contents = """ data: - SX48.8 - SX48.12 """ temp = utils.tmp_dir() flavor_file = os.path.join(temp, "flavor.yml") fs.create_file(flavor_file, contents=flavor_contents) if os.name != "nt": assert lambdafunc.get_flavor() == ["SX48.8", "SX48.12"]
def test_get_flavor(self): assert 'SS2.1' in lambdafunc.get_flavor()
def test_get_flavor_no_file(self, monkeypatch): monkeypatch.setattr(neo.libs.vm, "get_flavor", self.fake_get_flavor) if os.name != "nt": assert lambdafunc.get_flavor() == ["SS2.1", "SL24.8"]