]> git.ipfire.org Git - thirdparty/fastapi/sqlmodel.git/commitdiff
Update `docs_src/tutorial/create_db_and_table`
authorYurii Motov <yurii.motov.monte@gmail.com>
Wed, 24 Dec 2025 20:46:10 +0000 (21:46 +0100)
committerYurii Motov <yurii.motov.monte@gmail.com>
Thu, 25 Dec 2025 09:31:55 +0000 (10:31 +0100)
docs/tutorial/create-db-and-table.md
docs/tutorial/insert.md
docs_src/tutorial/create_db_and_table/tutorial001_py39.py [moved from docs_src/tutorial/create_db_and_table/tutorial001.py with 100% similarity]
docs_src/tutorial/create_db_and_table/tutorial002_py39.py [moved from docs_src/tutorial/create_db_and_table/tutorial002.py with 100% similarity]
docs_src/tutorial/create_db_and_table/tutorial003_py39.py [moved from docs_src/tutorial/create_db_and_table/tutorial003.py with 100% similarity]
tests/test_tutorial/test_create_db_and_table/test_tutorial001.py
tests/test_tutorial/test_create_db_and_table/test_tutorial002.py
tests/test_tutorial/test_create_db_and_table/test_tutorial003.py

index 688567ed4dcf2a4753b054490a2a5a83dd6d2a54..42ec60493257dddd4eb9ba14b60c91b60b87da72 100644 (file)
@@ -562,10 +562,10 @@ Now, let's give the code a final look:
 
 ////
 
-//// tab | Python 3.8+
+//// tab | Python 3.9+
 
 ```{.python .annotate}
-{!./docs_src/tutorial/create_db_and_table/tutorial003.py!}
+{!./docs_src/tutorial/create_db_and_table/tutorial003_py39.py!}
 ```
 
 {!./docs_src/tutorial/create_db_and_table/annotations/en/tutorial003.md!}
index c11633d6ce04e485ebecb6e0d5f42316baeaca1b..3ee03fef4356a7a2659b16132f735ce23be9a5a7 100644 (file)
@@ -39,14 +39,14 @@ This is the code we had to create the database and table, nothing new here:
 
 ////
 
-//// tab | Python 3.8+
+//// tab | Python 3.9+
 
 ```{.python .annotate hl_lines="22" }
-{!./docs_src/tutorial/create_db_and_table/tutorial003.py[ln:1-20]!}
+{!./docs_src/tutorial/create_db_and_table/tutorial003_py39.py[ln:1-20]!}
 
 # More code here later ðŸ‘ˆ
 
-{!./docs_src/tutorial/create_db_and_table/tutorial003.py[ln:23-24]!}
+{!./docs_src/tutorial/create_db_and_table/tutorial003_py39.py[ln:23-24]!}
 ```
 
 {!./docs_src/tutorial/create_db_and_table/annotations/en/tutorial003.md!}
index 4aeeb64b6c9ed7c7a9651a682be3c197b8c24eb6..3e054bf3ebe9ae8710d7e54d9f44bab096ab3b27 100644 (file)
@@ -8,7 +8,7 @@ from ...conftest import coverage_run, needs_py310
 @pytest.mark.parametrize(
     "module_name",
     [
-        "tutorial001",
+        "tutorial001_py39",
         pytest.param("tutorial001_py310", marks=needs_py310),
     ],
 )
index 0f1ad85fe9f33a9b2bc6c17dca37502d009967e5..f92bfee71dfc46ba328a27840fd46efa4620641b 100644 (file)
@@ -12,7 +12,7 @@ from ...conftest import needs_py310
 @pytest.fixture(
     name="module",
     params=[
-        "tutorial002",
+        "tutorial002_py39",
         pytest.param("tutorial002_py310", marks=needs_py310),
     ],
 )
index 446feae71a7201da7956b20cd9c5afd29d3c7455..e11e0a047243ef971fcc695fb8b5819e8133029e 100644 (file)
@@ -12,7 +12,7 @@ from ...conftest import needs_py310
 @pytest.fixture(
     name="module",
     params=[
-        "tutorial003",
+        "tutorial003_py39",
         pytest.param("tutorial003_py310", marks=needs_py310),
     ],
 )