mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-05 23:09:32 +01:00
10 lines
275 B
Python
10 lines
275 B
Python
from dvc.render.base import Renderer
|
|
|
|
|
|
def test_remove_special_characters():
|
|
special_chars = r"!@#$%^&*()[]{};,<>?\/:.|`~=_+"
|
|
dirty = f"plot_name{special_chars}"
|
|
assert Renderer._remove_special_chars(dirty) == "plot_name" + "_" * len(
|
|
special_chars
|
|
)
|