|
5 | 5 | import pytest |
6 | 6 | from click.testing import CliRunner |
7 | 7 | from reflex_base.config import Config |
8 | | -from reflex_base.constants.installer import PackageJson |
9 | 8 | from reflex_base.utils.decorator import cached_procedure |
10 | 9 |
|
11 | 10 | from reflex.reflex import cli |
@@ -91,24 +90,6 @@ def test_initialise_vite_config(config, expected_output): |
91 | 90 | assert expected_output in output |
92 | 91 |
|
93 | 92 |
|
94 | | -@pytest.mark.parametrize( |
95 | | - ("frontend_path", "expected_command"), |
96 | | - [ |
97 | | - ("", "sirv ./build/client --single 404.html --host"), |
98 | | - ("/", "sirv ./build/client --single 404.html --host"), |
99 | | - ("/app", "sirv ./build/client --single app/404.html --host"), |
100 | | - ("/app/", "sirv ./build/client --single app/404.html --host"), |
101 | | - ("app", "sirv ./build/client --single app/404.html --host"), |
102 | | - ( |
103 | | - "/deep/nested/path", |
104 | | - "sirv ./build/client --single deep/nested/path/404.html --host", |
105 | | - ), |
106 | | - ], |
107 | | -) |
108 | | -def test_get_prod_command(frontend_path, expected_command): |
109 | | - assert PackageJson.Commands.get_prod_command(frontend_path) == expected_command |
110 | | - |
111 | | - |
112 | 93 | def test_cached_procedure(): |
113 | 94 | call_count = 0 |
114 | 95 |
|
|
0 commit comments