質問編集履歴
4
個人情報保護
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,19 +18,19 @@
|
|
18
18
|
|
19
19
|
```cmd
|
20
20
|
|
21
|
-
(venv) C:\
|
21
|
+
(venv) C:\flask-tutorial>flask init-db
|
22
22
|
|
23
23
|
Initialized the database.
|
24
24
|
|
25
25
|
|
26
26
|
|
27
|
-
(venv) C:\
|
27
|
+
(venv) C:\flask-tutorial>pytest
|
28
28
|
|
29
29
|
========================================================= test session starts =========================================================
|
30
30
|
|
31
31
|
platform win32 -- Python 3.6.8, pytest-6.0.2, py-1.9.0, pluggy-0.13.1
|
32
32
|
|
33
|
-
rootdir: C:
|
33
|
+
rootdir: C:flask-tutorial, configfile: setup.cfg, testpaths: tests
|
34
34
|
|
35
35
|
collected 24 items
|
36
36
|
|
@@ -336,7 +336,7 @@
|
|
336
336
|
|
337
337
|
```cmd
|
338
338
|
|
339
|
-
(venv) C:\
|
339
|
+
(venv) C:\flask-tutorial>pip list
|
340
340
|
|
341
341
|
Package Version Location
|
342
342
|
|
@@ -354,7 +354,7 @@
|
|
354
354
|
|
355
355
|
Flask 1.1.2
|
356
356
|
|
357
|
-
flaskr 1.0.0 c:\
|
357
|
+
flaskr 1.0.0 c:\flask-tutorial
|
358
358
|
|
359
359
|
importlib-metadata 1.7.0
|
360
360
|
|
3
init-dbまで
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,6 +18,12 @@
|
|
18
18
|
|
19
19
|
```cmd
|
20
20
|
|
21
|
+
(venv) C:\Programming\PythonProgramFolder\programFiles\flask-tutorial>flask init-db
|
22
|
+
|
23
|
+
Initialized the database.
|
24
|
+
|
25
|
+
|
26
|
+
|
21
27
|
(venv) C:\Programming\PythonProgramFolder\programFiles\flask-tutorial>pytest
|
22
28
|
|
23
29
|
========================================================= test session starts =========================================================
|
2
venv
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
```cmd
|
20
20
|
|
21
|
-
(
|
21
|
+
(venv) C:\Programming\PythonProgramFolder\programFiles\flask-tutorial>pytest
|
22
22
|
|
23
23
|
========================================================= test session starts =========================================================
|
24
24
|
|
1
sqlのコードを追加しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -282,6 +282,32 @@
|
|
282
282
|
|
283
283
|
|
284
284
|
|
285
|
+
また使用しているSQLの内容は以下の通りです。
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
```sql
|
290
|
+
|
291
|
+
INSERT INTO user (username, password)
|
292
|
+
|
293
|
+
VALUES
|
294
|
+
|
295
|
+
('test', 'pbkdf2:sha256:50000$TCI4GzcX$0de171a4f4dac32e3364c7ddc7c14f3e2fa61f2d17574483f7ffbb431b4acb2f'),
|
296
|
+
|
297
|
+
('other', 'pbkdf2:sha256:50000$kJPKsz6N$d2d4784f1b030a9761f5ccaeeaca413f27f2ecb76d6168407af962ddce849f79');
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
INSERT INTO post (title, body, author_id, created)
|
302
|
+
|
303
|
+
VALUES
|
304
|
+
|
305
|
+
('test title', 'test' || x'0a' || 'body', 1, '2018-01-01 00:00:00');
|
306
|
+
|
307
|
+
```
|
308
|
+
|
309
|
+
|
310
|
+
|
285
311
|
### 試したこと
|
286
312
|
|
287
313
|
|