Browse Source

Update test references to Python 3.9

pull/14931/head
Sebastián Ramírez 5 months ago
parent
commit
5b3f14fad8
  1. 2
      scripts/tests/test_translation_fixer/test_code_includes/data/en_doc.md
  2. 4
      scripts/tests/test_translation_fixer/test_code_includes/data/translated_doc_number_gt.md
  3. 2
      scripts/tests/test_translation_fixer/test_code_includes/data/translated_doc_number_lt.md
  4. 16
      scripts/tests/test_translation_fixer/test_complex_doc/data/en_doc.md
  5. 16
      scripts/tests/test_translation_fixer/test_complex_doc/data/translated_doc.md
  6. 16
      scripts/tests/test_translation_fixer/test_complex_doc/data/translated_doc_expected.md

2
scripts/tests/test_translation_fixer/test_code_includes/data/en_doc.md

@ -4,7 +4,7 @@
Some text
{* ../../docs_src/bigger_applications/app_an_py39/internal/admin.py hl[3] title["app/internal/admin.py"] *}
{* ../../docs_src/bigger_applications/app_an_py310/internal/admin.py hl[3] title["app/internal/admin.py"] *}
Some more text

4
scripts/tests/test_translation_fixer/test_code_includes/data/translated_doc_number_gt.md

@ -4,7 +4,7 @@
Some text
{* ../../docs_src/bigger_applications/app_an_py39/internal/admin.py hl[3] title["app/internal/admin.py"] *}
{* ../../docs_src/bigger_applications/app_an_py310/internal/admin.py hl[3] title["app/internal/admin.py"] *}
Some more text
@ -12,4 +12,4 @@ Some more text
And even more text
{* ../../docs_src/python_types/tutorial001_py39.py *}
{* ../../docs_src/python_types/tutorial001_py310.py *}

2
scripts/tests/test_translation_fixer/test_code_includes/data/translated_doc_number_lt.md

@ -4,7 +4,7 @@
Some text
{* ../../docs_src/bigger_applications/app_an_py39/internal/admin.py hl[3] title["app/internal/admin.py"] *}
{* ../../docs_src/bigger_applications/app_an_py310/internal/admin.py hl[3] title["app/internal/admin.py"] *}
Some more text

16
scripts/tests/test_translation_fixer/test_complex_doc/data/en_doc.md

@ -141,16 +141,16 @@ def hello_world():
## Simple code includes { #simple-code-includes }
{* ../../docs_src/python_types/tutorial001_py39.py *}
{* ../../docs_src/python_types/tutorial001_py310.py *}
{* ../../docs_src/python_types/tutorial002_py39.py *}
{* ../../docs_src/python_types/tutorial002_py310.py *}
## Code includes with highlighting { #code-includes-with-highlighting }
{* ../../docs_src/python_types/tutorial002_py39.py hl[1] *}
{* ../../docs_src/python_types/tutorial002_py310.py hl[1] *}
{* ../../docs_src/python_types/tutorial006_py39.py hl[10] *}
{* ../../docs_src/python_types/tutorial006_py310.py hl[10] *}
## Code includes with line ranges { #code-includes-with-line-ranges }
@ -169,19 +169,19 @@ def hello_world():
## Code includes qith title { #code-includes-with-title }
{* ../../docs_src/bigger_applications/app_an_py39/routers/users.py hl[1,3] title["app/routers/users.py"] *}
{* ../../docs_src/bigger_applications/app_an_py310/routers/users.py hl[1,3] title["app/routers/users.py"] *}
{* ../../docs_src/bigger_applications/app_an_py39/internal/admin.py hl[3] title["app/internal/admin.py"] *}
{* ../../docs_src/bigger_applications/app_an_py310/internal/admin.py hl[3] title["app/internal/admin.py"] *}
## Code includes with unknown attributes { #code-includes-with-unknown-attributes }
{* ../../docs_src/python_types/tutorial001_py39.py unknown[123] *}
{* ../../docs_src/python_types/tutorial001_py310.py unknown[123] *}
## Some more code includes to test fixing { #some-more-code-includes-to-test-fixing }
{* ../../docs_src/dependencies/tutorial013_an_py310.py ln[19:21] *}
{* ../../docs_src/bigger_applications/app_an_py39/internal/admin.py hl[3] title["app/internal/admin.py"] *}
{* ../../docs_src/bigger_applications/app_an_py310/internal/admin.py hl[3] title["app/internal/admin.py"] *}
{* ../../docs_src/dependencies/tutorial013_an_py310.py ln[30:38] hl[31:33] *}

16
scripts/tests/test_translation_fixer/test_complex_doc/data/translated_doc.md

@ -139,16 +139,16 @@ def hello_world():
## Простые включения кода { #simple-code-includes }
{* ../../docs_src/python_types/tutorial001_py39.py *}
{* ../../docs_src/python_types/tutorial001_py310.py *}
{* ../../docs_src/python_types/tutorial002_py39.py *}
{* ../../docs_src/python_types/tutorial002_py310.py *}
## Включения кода с подсветкой { #code-includes-with-highlighting }
{* ../../docs_src/python_types/tutorial002_py39.py hl[1] *}
{* ../../docs_src/python_types/tutorial002_py310.py hl[1] *}
{* ../../docs_src/python_types/tutorial006_py39.py hl[10] *}
{* ../../docs_src/python_types/tutorial006_py310.py hl[10] *}
## Включения кода с диапазонами строк { #code-includes-with-line-ranges }
@ -167,19 +167,19 @@ def hello_world():
## Включения кода с заголовком { #code-includes-with-title }
{* ../../docs_src/bigger_applications/app_an_py39/routers/users.py hl[1,3] title["app/routers/users.py"] *}
{* ../../docs_src/bigger_applications/app_an_py310/routers/users.py hl[1,3] title["app/routers/users.py"] *}
{* ../../docs_src/bigger_applications/app_an_py39/internal/admin.py hl[3] title["app/internal/admin.py"] *}
{* ../../docs_src/bigger_applications/app_an_py310/internal/admin.py hl[3] title["app/internal/admin.py"] *}
## Включения кода с неизвестными атрибутами { #code-includes-with-unknown-attributes }
{* ../../docs_src/python_types/tutorial001_py39.py unknown[123] *}
{* ../../docs_src/python_types/tutorial001_py310.py unknown[123] *}
## Ещё включения кода для тестирования исправления { #some-more-code-includes-to-test-fixing }
{* ../../docs_src/dependencies/tutorial013_an_py310.py ln[19 : 21] *}
{* ../../docs_src/bigger_applications/app_an_py39/wrong.py hl[3] title["app/internal/admin.py"] *}
{* ../../docs_src/bigger_applications/app_an_py310/wrong.py hl[3] title["app/internal/admin.py"] *}
{* ../../docs_src/dependencies/tutorial013_an_py310.py ln[1:30] hl[1:10] *}

16
scripts/tests/test_translation_fixer/test_complex_doc/data/translated_doc_expected.md

@ -139,16 +139,16 @@ def hello_world():
## Простые включения кода { #simple-code-includes }
{* ../../docs_src/python_types/tutorial001_py39.py *}
{* ../../docs_src/python_types/tutorial001_py310.py *}
{* ../../docs_src/python_types/tutorial002_py39.py *}
{* ../../docs_src/python_types/tutorial002_py310.py *}
## Включения кода с подсветкой { #code-includes-with-highlighting }
{* ../../docs_src/python_types/tutorial002_py39.py hl[1] *}
{* ../../docs_src/python_types/tutorial002_py310.py hl[1] *}
{* ../../docs_src/python_types/tutorial006_py39.py hl[10] *}
{* ../../docs_src/python_types/tutorial006_py310.py hl[10] *}
## Включения кода с диапазонами строк { #code-includes-with-line-ranges }
@ -167,19 +167,19 @@ def hello_world():
## Включения кода с заголовком { #code-includes-with-title }
{* ../../docs_src/bigger_applications/app_an_py39/routers/users.py hl[1,3] title["app/routers/users.py"] *}
{* ../../docs_src/bigger_applications/app_an_py310/routers/users.py hl[1,3] title["app/routers/users.py"] *}
{* ../../docs_src/bigger_applications/app_an_py39/internal/admin.py hl[3] title["app/internal/admin.py"] *}
{* ../../docs_src/bigger_applications/app_an_py310/internal/admin.py hl[3] title["app/internal/admin.py"] *}
## Включения кода с неизвестными атрибутами { #code-includes-with-unknown-attributes }
{* ../../docs_src/python_types/tutorial001_py39.py unknown[123] *}
{* ../../docs_src/python_types/tutorial001_py310.py unknown[123] *}
## Ещё включения кода для тестирования исправления { #some-more-code-includes-to-test-fixing }
{* ../../docs_src/dependencies/tutorial013_an_py310.py ln[19:21] *}
{* ../../docs_src/bigger_applications/app_an_py39/internal/admin.py hl[3] title["app/internal/admin.py"] *}
{* ../../docs_src/bigger_applications/app_an_py310/internal/admin.py hl[3] title["app/internal/admin.py"] *}
{* ../../docs_src/dependencies/tutorial013_an_py310.py ln[30:38] hl[31:33] *}

Loading…
Cancel
Save