This PR makes a few sweeping changes to the actor, cli, and overall structure of the project. - CLI commands skeleton - ``arcade run``, ``arcade show``, and ``arcade new`` - Working package mangement solution (``arcade_`` packages) - Actor approach for using frameworks other than FastAPI - Client for calling Engine within ``arcade/core`` - beginning of the config interface. --------- Co-authored-by: Nate Barbettini <nate@arcade-ai.com>
26 lines
717 B
Python
26 lines
717 B
Python
import pytest
|
|
|
|
from arcade.core.utils import pascal_to_snake_case, snake_to_pascal_case
|
|
|
|
|
|
@pytest.mark.parametrize(
|
|
"input_str, expected",
|
|
[
|
|
("SnakeCase", "snake_case"),
|
|
("VeryLongSnake456", "very_long_snake456"),
|
|
],
|
|
)
|
|
def test_pascal_to_snake_case(input_str: str, expected: str):
|
|
assert pascal_to_snake_case(input_str) == expected
|
|
|
|
|
|
@pytest.mark.parametrize(
|
|
"input_str, expected",
|
|
[
|
|
("snake_case", "SnakeCase"),
|
|
("very_long_snake_456", "VeryLongSnake456"),
|
|
("camelCase", "Camelcase"), # camelCase isn't explicitly supported
|
|
],
|
|
)
|
|
def test_snake_to_pascal_case(input_str: str, expected: str):
|
|
assert snake_to_pascal_case(input_str) == expected
|