File tree Expand file tree Collapse file tree 7 files changed +13
-188
lines changed Expand file tree Collapse file tree 7 files changed +13
-188
lines changed Original file line number Diff line number Diff line change 1
- __version__ = "2023.11.4.dev17 "
1
+ __version__ = "2023.11.4.dev18 "
Original file line number Diff line number Diff line change 2
2
3
3
from typing import TYPE_CHECKING
4
4
5
- from crystal_toolkit .apps .examples .fermi_surface import app
6
-
7
5
if TYPE_CHECKING :
8
6
from crystal_toolkit .apps .examples .tests .typing import DashDuo
9
7
10
8
11
9
def test_diffraction (dash_duo : DashDuo ) -> None :
10
+ from crystal_toolkit .apps .examples .fermi_surface import app
11
+
12
12
dash_duo .start_server (app )
13
13
dash_duo .clear_storage ()
14
14
Original file line number Diff line number Diff line change 3
3
import time
4
4
from typing import TYPE_CHECKING
5
5
6
- from crystal_toolkit .apps .main import app
7
-
8
6
if TYPE_CHECKING :
9
7
from crystal_toolkit .apps .examples .tests .typing import DashDuo
10
8
11
9
12
10
def test_main_app_startup (dash_duo : DashDuo ):
11
+ from crystal_toolkit .apps .main import app
12
+
13
13
dash_duo .start_server (app )
14
14
# dash_duo.clear_storage()
15
15
Original file line number Diff line number Diff line change 2
2
3
3
from playwright .sync_api import Page
4
4
5
- from crystal_toolkit .apps .examples .pourbaix import app
6
5
7
- thread = threading . Thread ( target = app . run )
8
- thread . start ()
6
+ def test_pourbaix ( page : Page ):
7
+ from crystal_toolkit . apps . examples . pourbaix import app
9
8
9
+ thread = threading .Thread (target = app .run )
10
+ thread .start ()
10
11
11
- def test_pourbaix (page : Page ):
12
12
# select 1st structure
13
13
page .locator (".react-select__input-container" ).click ()
14
14
page .get_by_text ("Fe₃H (mp-1184287-GGA)" , exact = True ).click ()
Original file line number Diff line number Diff line change 3
3
4
4
from playwright .sync_api import Page , expect
5
5
6
- from crystal_toolkit .apps .examples .structure import app
7
6
8
- thread = threading . Thread ( target = app . run )
9
- thread . start ()
7
+ def test_structure ( page : Page ):
8
+ from crystal_toolkit . apps . examples . structure import app
10
9
10
+ thread = threading .Thread (target = app .run )
11
+ thread .start ()
11
12
12
- def test_structure (page : Page ):
13
13
expect (page ).to_have_title ("Crystal Toolkit" )
14
14
h1_text = page .text_content ("h1" )
15
15
assert h1_text == "StructureMoleculeComponent Example"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments