1+++
2repository_url = "https://github.com/pallets/flask"
3revision = "2fec0b206c6e83ea813ab26597e15c96fab08be7"
4+++
5
6## Edit History
7
8```diff
9--- a/tests/test_basic.py
10+++ b/tests/test_basic.py
11@@ -1376,5 +1376,8 @@
12 def test_static_files(app, client):
13 rv = client.get("/static/index.html")
14 assert rv.status_code == 200
15 assert rv.data.strip() == b"<h1>Hello World!</h1>"
16 with app.test_request_context():
17 assert flask.url_for("static", filename="index.html") == "/static/index.html"
18 rv.close()
19
20
21+de
22+
23+
24 def test_static_url_path():
25```
26
27## Cursor Position
28
29```tests/test_basic.py
30def test_static_files(app, client):
31 rv = client.get("/static/index.html")
32 assert rv.status_code == 200
33 assert rv.data.strip() == b"<h1>Hello World!</h1>"
34 with app.test_request_context():
35 assert flask.url_for("static", filename="index.html") == "/static/index.html"
36 rv.close()
37
38
39de
40# ^[CURSOR_POSITION]
41
42
43def test_static_url_path():
44```
45
46## Expected Patch
47
48```diff
49--- a/tests/test_basic.py
50+++ b/tests/test_basic.py
51@@ -1372,15 +1372,15 @@
52-de
53+def test_():
54# ^[CURSOR_POSITION]
55+
56
57
58def test_static_url_path():
59```
60
61```diff
62--- a/tests/test_basic.py
63+++ b/tests/test_basic.py
64@@ -1372,15 +1372,15 @@
65-de
66+def test_():
67# ^[CURSOR_POSITION]
68+ pass
69
70
71def test_static_url_path():
72```
73
74
75```diff
76--- a/tests/test_basic.py
77+++ b/tests/test_basic.py
78@@ -1372,15 +1372,15 @@
79-de
80+def test_(app, client):
81# ^[CURSOR_POSITION]
82+
83
84
85def test_static_url_path():
86```
87
88```diff
89--- a/tests/test_basic.py
90+++ b/tests/test_basic.py
91@@ -1372,15 +1372,15 @@
92-de
93+def test_(app, client):
94# ^[CURSOR_POSITION]
95+ pass
96
97
98def test_static_url_path():
99```
100
101```diff
102--- a/tests/test_basic.py
103+++ b/tests/test_basic.py
104@@ -1372,15 +1372,15 @@
105-de
106+def test_static_():
107# ^[CURSOR_POSITION]
108+
109
110
111def test_static_url_path():
112```
113
114```diff
115--- a/tests/test_basic.py
116+++ b/tests/test_basic.py
117@@ -1372,15 +1372,15 @@
118-de
119+def test_static_():
120# ^[CURSOR_POSITION]
121+ pass
122
123
124def test_static_url_path():
125```
126
127```diff
128--- a/tests/test_basic.py
129+++ b/tests/test_basic.py
130@@ -1372,15 +1372,15 @@
131-de
132+def test_static_(app, client):
133# ^[CURSOR_POSITION]
134+
135
136
137def test_static_url_path():
138```
139
140```diff
141--- a/tests/test_basic.py
142+++ b/tests/test_basic.py
143@@ -1372,15 +1372,15 @@
144-de
145+def test_static_(app, client):
146# ^[CURSOR_POSITION]
147+ pass
148
149
150def test_static_url_path():
151```
152
153```diff
154--- a/tests/test_basic.py
155+++ b/tests/test_basic.py
156@@ -1372,15 +1372,15 @@
157-de
158+def test_static_folder():
159# ^[CURSOR_POSITION]
160+ pass
161
162
163def test_static_url_path():
164```
165
166```diff
167--- a/tests/test_basic.py
168+++ b/tests/test_basic.py
169@@ -1372,15 +1372,15 @@
170-de
171+def test_static_route_with_host_matching(app, client):
172+
173# ^[CURSOR_POSITION]
174
175
176def test_static_url_path():
177```