Skip to content

Commit

Permalink
Switched to https protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
pchakraborty committed Sep 30, 2024
1 parent 9919a0c commit cdec3c7
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions tests/test_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ def get_registry():
return Registry(registry).read_file()


def __get_fvdycore_component_without_remote():
def get_fvdycore_component():
comp = MepoComponent()
comp.name = "fvdycore"
comp.local = "./src/Components/@FVdycoreCubed_GridComp/@fvdycore"
comp.remote = "https://github.com/GEOS-ESM/FVdycoreCubed_GridComp.git"
comp.version = MepoVersion(name="geos/v1.3.0", type="t", detached=True)
comp.sparse = None
comp.develop = "geos/develop"
Expand All @@ -31,23 +32,11 @@ def __get_fvdycore_component_without_remote():
return comp


def get_fvdycore_component_ssh():
comp = __get_fvdycore_component_without_remote()
comp.remote = "[email protected]:GEOS-ESM/GFDL_atmos_cubed_sphere.git"
return comp


def get_fvdycore_component_https():
comp = __get_fvdycore_component_without_remote()
comp.remote = "https://github.com/GEOS-ESM/FVdycoreCubed_GridComp.git"
return comp


def get_fvdycore_serialized():
return {
"name": "fvdycore",
"local": "./src/Components/@FVdycoreCubed_GridComp/@fvdycore",
"remote": "git@github.com:GEOS-ESM/GFDL_atmos_cubed_sphere.git",
"remote": "https://github.com/GEOS-ESM/FVdycoreCubed_GridComp.git",
"version": ["geos/v1.3.0", "t", True],
"sparse": None,
"develop": "geos/develop",
Expand Down Expand Up @@ -75,8 +64,5 @@ def test_MepoComponent():
for name, comp in registry.items():
if name == "fvdycore":
fvdycore = MepoComponent().registry_to_component(name, comp, None)
assert (
fvdycore == get_fvdycore_component_ssh()
or fvdycore == get_fvdycore_component_https()
)
assert fvdycore == get_fvdycore_component
assert fvdycore.serialize() == get_fvdycore_serialized()

0 comments on commit cdec3c7

Please sign in to comment.