Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMariday committed Feb 4, 2025
1 parent a54fc9c commit 7b84e39
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions marimapper/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,6 @@ def backend_black(backend):
return False


def get_marimapper_version() -> str: # pragma: no cover
def get_marimapper_version() -> str: # pragma: no cover

return importlib.metadata.version("marimapper") # pragma: no cover
return importlib.metadata.version("marimapper") # pragma: no cover
5 changes: 3 additions & 2 deletions test/test_2d_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ def test_partially_valid_data():
assert get_led(led_map, 2).point.position[0] == 0
assert get_led(led_map, 2).point.position[1] == 0


def test_missing_headers():
temp_led_map_file = tempfile.NamedTemporaryFile(delete=False, suffix=".csv")
temp_led_map_file.write(
b"""index,v,u
0,0.379490,0.407710"""
)
)

temp_led_map_file.close()

Expand Down Expand Up @@ -73,6 +74,6 @@ def test_get_all_maps():

all_maps = get_all_2d_led_maps(Path(directory.name))

assert len(all_maps) == 1, 'expected 1 map'
assert len(all_maps) == 1, "expected 1 map"

directory.cleanup()
1 change: 0 additions & 1 deletion test/test_sfm_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,3 @@ def test_sfm_process_exit():
del sfm

assert True

2 changes: 2 additions & 0 deletions test/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from marimapper import utils
import argparse


def test_add_common_args():
parser = argparse.ArgumentParser()
utils.add_common_args(parser)
Expand All @@ -12,6 +13,7 @@ def test_add_common_args():
assert args.version == False
assert args.verbose == False


def test_add_backend_args():

parser = argparse.ArgumentParser()
Expand Down

0 comments on commit 7b84e39

Please sign in to comment.