def fallback_to_generic_buildvariant(self, major_minor_version): """Return generic buildvariant name. Wrapper around evergreen_conn.get_generic_buildvariant_name(). """ return evergreen_conn.get_generic_buildvariant_name( config=self.config, major_minor_version=major_minor_version)
def test_buildvariant_found(self): major_minor_version = "4.0" generic_buildvariant_name = evergreen_conn.get_generic_buildvariant_name( config=self.config, major_minor_version=major_minor_version) self.assertEqual(generic_buildvariant_name, "generic-buildvariant-name")