@@ -0,0 +1,22 @@
|
||||
"""UI-контракт /feed_dispensers."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import unittest
|
||||
|
||||
from tests.helpers.zootech_test_helpers import STATIC
|
||||
|
||||
|
||||
class FeedDispensersUiContractTests(unittest.TestCase):
|
||||
def setUp(self) -> None:
|
||||
self.html = (STATIC / "feed_dispensers.html").read_text(encoding="utf-8")
|
||||
|
||||
def test_lists_feed_dispensers_api(self) -> None:
|
||||
self.assertIn("fetch('/api/feed_dispensers'", self.html)
|
||||
|
||||
def test_period_api_pattern_present(self) -> None:
|
||||
self.assertIn("periods", self.html)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in New Issue
Block a user