Skip to content

Commit

Permalink
🔨 Update tests files
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoinePELAMOURGUES committed Nov 19, 2024
1 parent 809d5c7 commit 1cfe955
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_app.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import streamlit as st
from streamlit.testing import TestRunner
from streamlit.app.utils import display_movies_grid

from streamlit.app.pages import _4_Authentification, _5_Application

def test_display_movies_grid():
runner = TestRunner()
Expand All @@ -16,12 +16,12 @@ def test_display_movies_grid():

def test_authentication_page():
runner = TestRunner()
runner.run(auth_page)
runner.run(_4_Authentification)
assert runner.get_widget("header").exists()

def test_application_page():
runner = TestRunner()
runner.run(app_page)
runner.run(_5_Application)
assert runner.get_widget("markdown").exists()

if __name__ == "__main__":
Expand Down

0 comments on commit 1cfe955

Please sign in to comment.