Files
core/tests/test_frontend_url.py
Untone 4b88a8c449
Some checks failed
Deploy on push / deploy (push) Failing after 1m11s
ci-testing
2025-08-17 11:09:29 +03:00

28 lines
912 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env python3
"""
Тест фикстуры frontend_url
"""
import pytest
def test_frontend_url_fixture(frontend_url):
"""Тест фикстуры frontend_url"""
print(f"🌐 frontend_url: {frontend_url}")
# Проверяем что URL валидный
assert frontend_url is not None
assert isinstance(frontend_url, str)
assert frontend_url.startswith("http")
# По умолчанию должен быть http://localhost:3000 согласно settings.py
# Но в тестах может быть переопределен
expected_urls = ["http://localhost:3000", "http://localhost:8000"]
assert frontend_url in expected_urls, f"frontend_url должен быть одним из {expected_urls}"
print(f"✅ frontend_url корректен: {frontend_url}")
if __name__ == "__main__":
pytest.main([__file__, "-v", "-s"])