mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 15:28:34 +01:00
* move parsing params to utils * fix tests * move chunk_dict and test it * update test
14 lines
351 B
Python
14 lines
351 B
Python
import pytest
|
|
|
|
from dvc.repo.run import is_valid_name
|
|
|
|
|
|
@pytest.mark.parametrize("name", ["copy_name", "copy-name", "copyName", "12"])
|
|
def test_valid_stage_names(name):
|
|
assert is_valid_name(name)
|
|
|
|
|
|
@pytest.mark.parametrize("name", ["copy$name", "copy-name?", "copy-name@v1"])
|
|
def test_invalid_stage_names(name):
|
|
assert not is_valid_name(name)
|