Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style(map_projection_loader): unify the name of yaml file #4778

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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