Skip to content

Commit

Permalink
Use backticks in tests description
Browse files Browse the repository at this point in the history
  • Loading branch information
tgorochowik committed Oct 13, 2023
1 parent 67b35d4 commit 662073c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions protoplaster/camera/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_frame(self):
{% macro test_frame(device) -%}
try to capture frame
{%- if device['save_file'] is defined -%}
and store it to '{{ device['save_file'] }}' file
and store it to `{{ device['save_file'] }}` file
{%- endif %}
{%- endmacro %}
"""
Expand All @@ -32,7 +32,7 @@ def test_frame(self):
def test_device_name(self):
"""
{% macro test_device_name(device) -%}
check if the camera sensor name is '{{ device['camera_name'] }}'
check if the camera sensor name is `{{ device['camera_name'] }}`
{%- endmacro %}
"""
device = Camera(self.device)
Expand All @@ -42,7 +42,7 @@ def test_device_name(self):
def test_driver_name(self):
"""
{% macro test_driver_name(device) -%}
check if the camera sensor driver name is '{{ device['driver_name'] }}'
check if the camera sensor driver name is `{{ device['driver_name'] }}`
{%- endmacro %}
"""
device = Camera(self.device)
Expand Down
2 changes: 1 addition & 1 deletion protoplaster/gpio/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class TestGPIO:
def test_read_write(self):
"""
{% macro test_read_write(device) -%}
write the value '{{ device['value'] }}' and read to confirm
write `{{ device['value'] }}` and read back to confirm
{%- endmacro %}
"""
self.gpio_name = self.gpio_name if hasattr(self, "gpio_name") else None
Expand Down
2 changes: 1 addition & 1 deletion protoplaster/i2c/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_addresses(self):
{% macro test_addresses(device) -%}
{%- for dev in device['devices'] -%}
{%- set addr = dev['address'] -%}
detection test for {{ dev['name'] }} on address: 0x{{ "%0x" | format(addr|int) }}
detection test for `{{ dev['name'] }}` on address: `0x{{ "%0x" | format(addr|int) }}`
{%- endfor %}
{%- endmacro %}
"""
Expand Down

0 comments on commit 662073c

Please sign in to comment.