mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
* refactor run; move to stage.utils * Update dvc/repo/run.py * fix pylint * skip on run-cache
14 lines
354 B
Python
14 lines
354 B
Python
import pytest
|
|
|
|
from dvc.stage.utils 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)
|