determine-docker-tags/tests/test_is_app_name_empty.py

15 lines
304 B
Python

#!/usr/bin/env python3
import pytest
from determine_docker_tags import is_app_name_empty
def test_is_app_name_empty():
with pytest.raises(ValueError):
is_app_name_empty(" ")
with pytest.raises(ValueError):
is_app_name_empty("")
assert is_app_name_empty("test") is None