Skip to content

Commit

Permalink
Improved core utilities coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Collins committed Apr 8, 2020
1 parent 7b8c5b8 commit d79f66b
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions tests/test_core_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,24 @@ def test_create_from_path():


def test_camel_to_snake():
assert utilities.camel_to_snake("SomeCamelString") == "some_camel_string"
assert utilities.camel_to_snake("someCamelString") == "some_camel_string"


def test_camel_to_spine():
assert utilities.camel_to_spine("SomeCamelString") == "some-camel-string"
assert utilities.camel_to_spine("someCamelString") == "some-camel-string"


def test_snake_to_spinee():
def test_snake_to_spine():
assert utilities.snake_to_spine("some_snake_string") == "some-snake-string"


def test_snake_to_camel():
assert utilities.snake_to_camel("some_snake_string") == "someSnakeString"


def test_path_relative_to():
import os

assert utilities.path_relative_to(
"/path/to/file.extension", "joinpath", "joinfile.extension"
) == os.path.abspath("/path/to/joinpath/joinfile.extension")

0 comments on commit d79f66b

Please sign in to comment.