Skip to content

Commit

Permalink
[ENH] Test for flame size
Browse files Browse the repository at this point in the history
  • Loading branch information
dragarthPl committed Apr 18, 2024
1 parent 2811886 commit d29327d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/tests/test_flame_size.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import asyncio
import unittest

from starlette.testclient import TestClient

from main.core.sample_container import sample_container
from main.home_periscope import HomePeriscope

client = TestClient(HomePeriscope.create_app(sample_container))
loop = asyncio.get_event_loop()


class TestFlameSize(unittest.TestCase):
def test_flame_size(self):
response = client.get("/api/flame_size")
self.assertEqual(response.status_code, 200)
self.assertEqual({'flame_size': '30%'}, response.json())

0 comments on commit d29327d

Please sign in to comment.