Skip to content

Commit 9a4d682

Browse files
Update cookie cutter template
1 parent d24ae2a commit 9a4d682

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cookiecutter/{{ cookiecutter.package_name }}/e2e/test_template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ def test_should_render_template(page: Page):
3131

3232
frame.get_by_role("button", name="Click me!").click()
3333

34-
page.get_by_text("You've clicked 1 times!")
34+
page.get_by_text("You've clicked 1 times!")

cookiecutter/{{ cookiecutter.package_name }}/{{ cookiecutter.import_name }}/example.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import streamlit as st
2+
from {{ cookiecutter.import_name }} import {{ cookiecutter.import_name }}
3+
14
# Add some test code to play with the component while it's in development.
25
# During development, we can run this just as we would any other Streamlit
36
# app: `$ streamlit run {{ cookiecutter.import_name }}/example.py`
47

5-
import streamlit as st
6-
from {{ cookiecutter.import_name }} import {{ cookiecutter.import_name }}
7-
88
st.subheader("Component with constant args")
99

1010
# Create an instance of our component with a constant `name` arg, and

0 commit comments

Comments
 (0)