Skip to content

Commit

Permalink
style(map_projection_loader): unify the name of yaml file (#4778)
Browse files Browse the repository at this point in the history
fix(map_projection_loader): unify the name of yaml file

Signed-off-by: kminoda <koji.minoda@tier4.jp>
  • Loading branch information
kminoda authored Aug 28, 2023
1 parent dbeeeb1 commit 84107d0
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@

logger = get_logger(__name__)

YAML_FILE_PATH = "test/data/projection_info_local_cartesian_utm.yaml"
YAML_FILE_PATH = "test/data/map_projector_info_local_cartesian_utm.yaml"


@pytest.mark.launch_test
def generate_test_description():
map_projection_info_path = os.path.join(
map_projector_info_path = os.path.join(
get_package_share_directory("map_projection_loader"), YAML_FILE_PATH
)

Expand All @@ -48,7 +48,7 @@ def generate_test_description():
output="screen",
parameters=[
{
"map_projector_info_path": map_projection_info_path,
"map_projector_info_path": map_projector_info_path,
"lanelet2_map_path": "",
"use_local_projector": False,
},
Expand Down Expand Up @@ -121,10 +121,10 @@ def test_node_link(self):
)

# Load the yaml file directly
map_projection_info_path = os.path.join(
map_projector_info_path = os.path.join(
get_package_share_directory("map_projection_loader"), YAML_FILE_PATH
)
with open(map_projection_info_path) as f:
with open(map_projector_info_path) as f:
yaml_data = yaml.load(f, Loader=yaml.FullLoader)

# Test if message received
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@

logger = get_logger(__name__)

YAML_FILE_PATH = "test/data/projection_info_local.yaml"
YAML_FILE_PATH = "test/data/map_projector_info_local.yaml"


@pytest.mark.launch_test
def generate_test_description():
map_projection_info_path = os.path.join(
map_projector_info_path = os.path.join(
get_package_share_directory("map_projection_loader"), YAML_FILE_PATH
)

Expand All @@ -48,7 +48,7 @@ def generate_test_description():
output="screen",
parameters=[
{
"map_projector_info_path": map_projection_info_path,
"map_projector_info_path": map_projector_info_path,
"lanelet2_map_path": "",
"use_local_projector": False,
},
Expand Down Expand Up @@ -121,10 +121,10 @@ def test_node_link(self):
)

# Load the yaml file directly
map_projection_info_path = os.path.join(
map_projector_info_path = os.path.join(
get_package_share_directory("map_projection_loader"), YAML_FILE_PATH
)
with open(map_projection_info_path) as f:
with open(map_projector_info_path) as f:
yaml_data = yaml.load(f, Loader=yaml.FullLoader)

# Test if message received
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@

logger = get_logger(__name__)

YAML_FILE_PATH = "test/data/projection_info_mgrs.yaml"
YAML_FILE_PATH = "test/data/map_projector_info_mgrs.yaml"


@pytest.mark.launch_test
def generate_test_description():
map_projection_info_path = os.path.join(
map_projector_info_path = os.path.join(
get_package_share_directory("map_projection_loader"), YAML_FILE_PATH
)

Expand All @@ -48,7 +48,7 @@ def generate_test_description():
output="screen",
parameters=[
{
"map_projector_info_path": map_projection_info_path,
"map_projector_info_path": map_projector_info_path,
"lanelet2_map_path": "",
"use_local_projector": False,
},
Expand Down Expand Up @@ -121,10 +121,10 @@ def test_node_link(self):
)

# Load the yaml file directly
map_projection_info_path = os.path.join(
map_projector_info_path = os.path.join(
get_package_share_directory("map_projection_loader"), YAML_FILE_PATH
)
with open(map_projection_info_path) as f:
with open(map_projector_info_path) as f:
yaml_data = yaml.load(f, Loader=yaml.FullLoader)

# Test if message received
Expand Down

0 comments on commit 84107d0

Please sign in to comment.