diff --git a/doc-source/ignore_missing_xref.py b/doc-source/ignore_missing_xref.py new file mode 100644 index 0000000..a375266 --- /dev/null +++ b/doc-source/ignore_missing_xref.py @@ -0,0 +1,13 @@ +# 3rd party +from docutils import nodes +from sphinx.application import Sphinx +from sphinx.errors import NoUri + + +def handle_missing_xref(app: Sphinx, env, node: nodes.Node, contnode: nodes.Node) -> None: + if node.get("reftarget", '').startswith("tokenize_rt."): + raise NoUri + + +def setup(app: Sphinx): + app.connect("missing-reference", handle_missing_xref, priority=950) diff --git a/pyproject.toml b/pyproject.toml index 3eb022d..449aabf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -74,6 +74,7 @@ extensions = [ "sphinx_favicon", "sphinx_toolbox_experimental.missing_xref", "sphinx_packaging", + "ignore_missing_xref", ] gitstamp_fmt = "%d %b %Y" templates_path = [ "_templates",] diff --git a/repo_helper.yml b/repo_helper.yml index bed2e48..6dafc33 100644 --- a/repo_helper.yml +++ b/repo_helper.yml @@ -49,6 +49,7 @@ extra_sphinx_extensions: # - sphinx_toolbox_experimental.changelog - sphinx_toolbox_experimental.missing_xref - sphinx_packaging + - ignore_missing_xref sphinx_conf_epilogue: # - "\tfrom sphinx_toolbox.latex import replace_unknown_unicode" diff --git a/requirements.txt b/requirements.txt index 157e311..fe79a69 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,4 +4,5 @@ dom-toml>=2.0.0 domdf-python-tools>=3.0.0 entrypoints>=0.3 formate>=1.2.1 +tokenize-rt>=5.0.0 typing-extensions>=3.10.0.0 diff --git a/snippet_fmt/__init__.py b/snippet_fmt/__init__.py index d5d69bd..919c4fc 100644 --- a/snippet_fmt/__init__.py +++ b/snippet_fmt/__init__.py @@ -32,6 +32,7 @@ # stdlib import contextlib +import os import re import textwrap from typing import Dict, Iterator, List, Match, NamedTuple, Optional @@ -39,6 +40,7 @@ # 3rd party import click import entrypoints # type: ignore[import-untyped] +import tokenize_rt # type: ignore[import-untyped] from consolekit.terminal_colours import ColourTrilean, resolve_color_default from consolekit.utils import coloured_diff from domdf_python_tools.paths import PathPlus @@ -47,6 +49,7 @@ from formate.utils import syntaxerror_for_file # this package +import snippet_fmt.docstring from snippet_fmt.config import SnippetFmtConfigDict from snippet_fmt.formatters import Formatter, format_ini, format_json, format_python, format_toml, noformat @@ -56,7 +59,15 @@ __version__: str = "0.1.5" __email__: str = "dominic@davis-foster.co.uk" -__all__ = ("CodeBlockError", "RSTReformatter", "reformat_file") +__all__ = ( + "CodeBlockError", + "DocstringReformatter", + "PyReformatter", + "RSTReformatter", + "Reformatter", + "reformat_docstrings", + "reformat_file", + ) TRAILING_NL_RE = re.compile(r'\n+\Z', re.MULTILINE) @@ -76,33 +87,30 @@ class CodeBlockError(NamedTuple): # TODO: reformatter for docstrings -class RSTReformatter: +class Reformatter: """ - Reformat code snippets in a reStructuredText file. + Base class for reformatters. - :param filename: The filename to reformat. + :param source: The file content. + :param filename: The file being formatted, for display in error messages. :param config: The ``snippet_fmt`` configuration, parsed from a TOML file (or similar). .. autosummary-widths:: 35/100 .. latex:clearpage:: """ - #: The filename being reformatted. - filename: str - #: The filename being reformatted, as a POSIX-style path. - file_to_format: PathPlus + filename: str #: The ``formate`` configuration, parsed from a TOML file (or similar). config: SnippetFmtConfigDict errors: List[CodeBlockError] - def __init__(self, filename: PathLike, config: SnippetFmtConfigDict): - self.file_to_format = PathPlus(filename) - self.filename = self.file_to_format.as_posix() + def __init__(self, source: str, filename: str, config: SnippetFmtConfigDict): + self.filename = filename self.config = config - self._unformatted_source = self.file_to_format.read_text() + self._unformatted_source = source self._reformatted_source: Optional[str] = None self.errors = [] @@ -116,19 +124,13 @@ def __init__(self, filename: PathLike, config: SnippetFmtConfigDict): } self.load_extra_formatters() - def run(self) -> bool: + def compile_regex(self) -> re.Pattern: """ - Run the reformatter. - - :return: Whether the file was changed. + Compile the regular expression for finding directives. """ - - content = StringList(self._unformatted_source) - content.blankline(ensure_single=True) - directives = '|'.join(self.config["directives"]) - pattern = re.compile( + return re.compile( rf'(?P' rf'^(?P[ \t]*)\.\.[ \t]*(' rf'({directives})::\s*(?P[A-Za-z0-9-_]+)?)\n' @@ -139,14 +141,35 @@ def run(self) -> bool: re.MULTILINE, ) + def run(self) -> bool: + """ + Run the reformatter. + + :return: Whether the file was changed. + """ + + content = StringList(self._unformatted_source) + content.blankline(ensure_single=True) + + pattern = self.compile_regex() + self._reformatted_source = pattern.sub(self.process_match, str(content)) for error in self.errors: - lineno = self._unformatted_source[:error.offset].count('\n') + 1 - click.echo(f"{self.filename}:{lineno}: {error.exc.__class__.__name__}: {error.exc}", err=True) + self.report_error(error) return self._reformatted_source != self._unformatted_source + def report_error(self, error: CodeBlockError) -> None: + """ + Print the error message. + + :param error: + """ + + lineno = self._unformatted_source[:error.offset].count('\n') + 1 + click.echo(f"{self.filename}:{lineno}: {error.exc.__class__.__name__}: {error.exc}", err=True) + def process_match(self, match: Match[str]) -> str: """ Process a :meth:`re.Match ` for a single code block. @@ -189,8 +212,8 @@ def get_diff(self) -> str: return coloured_diff( before, after, - self.filename, - self.filename, + os.fspath(self.filename), + os.fspath(self.filename), "(original)", "(reformatted)", lineterm='', @@ -206,13 +229,6 @@ def to_string(self) -> str: return self._reformatted_source - def to_file(self) -> None: - """ - Write the reformatted source to the original file. - """ - - self.file_to_format.write_text(self.to_string()) - @contextlib.contextmanager def _collect_error(self, match: Match[str]) -> Iterator[None]: try: @@ -236,6 +252,190 @@ def load_extra_formatters(self) -> None: self._formatters[name] = ep.load() +class RSTReformatter(Reformatter): + """ + Reformat code snippets in a reStructuredText file. + + :param filename: The filename to reformat. + :param config: The ``snippet_fmt`` configuration, parsed from a TOML file (or similar). + + .. autosummary-widths:: 35/100 + .. latex:clearpage:: + """ + + #: The filename being reformatted. + file_to_format: PathPlus + + def __init__(self, filename: PathLike, config: SnippetFmtConfigDict): + self.file_to_format = PathPlus(filename) + super().__init__(self.file_to_format.read_text(), self.file_to_format.as_posix(), config) + + def to_file(self) -> None: + """ + Write the reformatted source to the original file. + """ + + self.file_to_format.write_text(self.to_string()) + + +class DocstringReformatter(Reformatter): + """ + Reformat code snippets in a docstring from a Python file. + + :param token: The docstring token to format. + :param filename: The filename being reformated. + :param config: The ``snippet_fmt`` configuration, parsed from a TOML file (or similar). + + .. autosummary-widths:: 35/100 + .. latex:clearpage:: + """ + + #: The docstring token being reformatted. + token: tokenize_rt.Token + + #: Letters before the string e.g. ``f``, ``u``, ``r``, ``fr`` + prefix_char: str + + #: Quotes used for the docstring, e.g. ``'`` or ``"""`` + quote_char: str + + #: The docstring's indentation. + indent: str + + def __init__(self, token: tokenize_rt.Token, filename: PathLike, config: SnippetFmtConfigDict): + self.token = token + + prefix_char, quote_char, indent, docstring = snippet_fmt.docstring.get_parts(token.src) + self.prefix_char = prefix_char + self.quote_char = quote_char + self.indent = indent + + super().__init__(docstring, PathPlus(filename).as_posix(), config) + + def report_error(self, error: CodeBlockError) -> None: + """ + Print the error message. + + :param error: + """ + + lineno = self._unformatted_source[:error.offset].count('\n') + 1 + click.echo( + f"{self.filename}:{lineno+self.token.line-1}: {error.exc.__class__.__name__}: {error.exc}", + err=True, + ) + + def get_diff(self) -> str: + """ + Returns the diff between the original and reformatted file content. + """ + + after = self.to_string().split('\n') + return snippet_fmt.docstring.diff( + self.token, + after, + os.fspath(self.filename), + ) + + def to_string(self) -> str: + """ + Return the reformatted file as a string. + """ + + if self._reformatted_source is None: + raise ValueError("'Reformatter.run()' must be called first!") + + parts = [ + self.prefix_char, + self.quote_char, + textwrap.indent(self._reformatted_source, self.indent).rstrip(), + ] + + if len(self.quote_char) == 3: + parts.append('\n') + parts.append(self.indent) + + parts.append(self.quote_char) + + return ''.join(parts) + + def to_token(self) -> tokenize_rt.Token: + """ + Return the docstring as a token for ``tokenize_rt``. + """ + + return tokenize_rt.Token( + name="STRING", + src=self.to_string(), + line=self.token.line, + utf8_byte_offset=self.token.utf8_byte_offset, + ) + + def run(self) -> bool: + """ + Run the reformatter. + + :return: Whether the file was changed. + """ + + content = StringList(self._unformatted_source) + if len(self.quote_char) == 3: + content.blankline(ensure_single=True) + + pattern = self.compile_regex() + + self._reformatted_source = pattern.sub(self.process_match, str(content)) + + for error in self.errors: + self.report_error(error) + + return self._reformatted_source != self._unformatted_source + + +class PyReformatter(RSTReformatter): + """ + Reformat code snippets in docstrings in a Python file. + + :param filename: The filename to reformat. + :param config: The ``snippet_fmt`` configuration, parsed from a TOML file (or similar). + + .. autosummary-widths:: 35/100 + .. latex:clearpage:: + """ + + def run(self) -> bool: + """ + Run the reformatter. + + :return: Whether the file was changed. + """ + + original_tokens = snippet_fmt.docstring.get_tokens(self._unformatted_source) + tokens: List[tokenize_rt.Token] = [] + + file_ret = 0 + + for token in original_tokens: + + if token.name == "DOCSTRING": + r = DocstringReformatter(token, self.file_to_format, self.config) + + with syntaxerror_for_file(self.filename): + if r.run(): + token = r.to_token() + file_ret = True + + tokens.append(token) + + self._reformatted_source = tokenize_rt.tokens_to_src(tokens) + if file_ret: + assert tokenize_rt.tokens_to_src(tokens) != self._unformatted_source + return True + else: + assert tokenize_rt.tokens_to_src(tokens) == self._unformatted_source + return False + + def reformat_file( filename: PathLike, config: SnippetFmtConfigDict, @@ -258,3 +458,46 @@ def reformat_file( r.to_file() return ret + + +def reformat_docstrings( + filename: PathLike, + config: SnippetFmtConfigDict, + colour: ColourTrilean = None, + ) -> int: + """ + Reformat docstrings in the given Python file, and show the diff if changes were made. + + :param filename: The filename to reformat. + :param config: The ``snippet-fmt`` configuration, parsed from a TOML file (or similar). + :param colour: Whether to force coloured output on (:py:obj:`True`) or off (:py:obj:`False`). + """ + + file = PathPlus(filename) + source = file.read_text() + + original_tokens = snippet_fmt.docstring.get_tokens(source) + tokens: List[tokenize_rt.Token] = [] + + file_ret = 0 + + for token in original_tokens: + + if token.name == "DOCSTRING": + r = DocstringReformatter(token, file, config) + + with syntaxerror_for_file(file.name): + if r.run(): + token = r.to_token() + click.echo(r.get_diff(), color=resolve_color_default(colour)) + file_ret = True + + tokens.append(token) + + if file_ret: + file.write_text(tokenize_rt.tokens_to_src(tokens)) + assert tokenize_rt.tokens_to_src(tokens) != source + return True + else: + assert tokenize_rt.tokens_to_src(tokens) == source + return False diff --git a/snippet_fmt/__main__.py b/snippet_fmt/__main__.py index c016770..ba35366 100644 --- a/snippet_fmt/__main__.py +++ b/snippet_fmt/__main__.py @@ -38,6 +38,9 @@ from consolekit.tracebacks import handle_tracebacks, traceback_option from domdf_python_tools.typing import PathLike +# this package +from snippet_fmt import PyReformatter + __all__ = ("main", ) @@ -102,13 +105,17 @@ def main( path = PathPlus(path).abspath() - if path.suffix != ".rst" or path.is_dir(): + if path.suffix not in {".rst", ".py"} or path.is_dir(): if verbose >= 2: click.echo(f"Skipping {path} as it doesn't appear to be a reStructuredText file") continue - r = RSTReformatter(path, config=config) + if path.suffix == ".rst": + r = RSTReformatter(path, config=config) + else: + assert path.suffix == ".py" + r = PyReformatter(path, config=config) with handle_tracebacks(show_traceback, cls=SyntaxTracebackHandler): ret_for_file = r.run() diff --git a/snippet_fmt/docstring.py b/snippet_fmt/docstring.py new file mode 100644 index 0000000..794ac14 --- /dev/null +++ b/snippet_fmt/docstring.py @@ -0,0 +1,258 @@ +#!/usr/bin/env python3 +# +# docstring.py +""" +Docstring processing for formatting. +""" +# +# Copyright © 2026 Dominic Davis-Foster +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE +# OR OTHER DEALINGS IN THE SOFTWARE. +# + +# stdlib +import difflib +import string +from collections import deque +from typing import Container, Iterator, List, NamedTuple, Optional, Sequence, Tuple + +# 3rd party +import tokenize_rt # type: ignore[import-untyped] +from consolekit import terminal_colours +from domdf_python_tools.stringlist import StringList + +__all__ = ["dedent", "diff", "get_parts", "get_tokens"] + + +class DocstringToken(NamedTuple): + name: str + src: str + line: Optional[int] = None + utf8_byte_offset: Optional[int] = None + function_name: Optional[str] = None + + # @property + # def offset(self) -> tokenize_rt.Offset: + # return tokenize_rt.Offset(self.line, self.utf8_byte_offset) + + # def matches(self, *, name: str, src: str) -> bool: + # return self.name == name and self.src == src + + +def dedent(docstring: str) -> Tuple[str, str]: + """ + Remove indentation from the docstring. + + :param docstring: + + :returns: The dedented docstring and the indentation used. + """ + + try: + lines = docstring.split('\n') + except (AttributeError, TypeError): + msg = f'expected str object, not {type(docstring).__qualname__!r}' + raise TypeError(msg) from None + + # Get length of leading whitespace, inspired by ``os.path.commonprefix()``. + non_blank_lines = [l for l in lines if l and not l.isspace()] + l1 = min(non_blank_lines, default='') + l2 = max(non_blank_lines, default='') + margin = 0 + for margin, c in enumerate(l1): + if c != l2[margin] or c not in " \t": + break + + return '\n'.join([l[margin:] if not l.isspace() else '' for l in lines]), l1[:margin] + + +def get_parts(docstring: str) -> Tuple[str, str, str, str]: + """ + Extract the docstring from the string literal and return prefix characters (e.g. ``u``), the quotes, indent, and the docstring. + + :param docstring: + """ + + docstring_string: str = docstring + prefix_char = '' + + while docstring_string[0] in string.ascii_letters: + prefix_char = docstring_string[0] + docstring_string = docstring_string[1:] + + if docstring_string[:2] not in {"''", '""'}: + # Not triple quoted + if docstring_string[0] == "'": + # Single quoted + quote_char = "'" + else: + # double quoted + quote_char = '"' + assert docstring_string[0] == quote_char + assert docstring_string[-1] == quote_char + else: + if docstring_string[:3] == "'''": + # Triple-Single quoted + quote_char = "'''" + else: + # Triple-Double quoted + quote_char = '"""' + assert docstring_string[:3] == quote_char + assert docstring_string[-3:] == quote_char + + if len(quote_char) == 3: + docstring = docstring_string[3:-3] + else: + docstring = docstring_string[1:-1] + + docstring, indent = dedent(docstring) + + return prefix_char, quote_char, indent, docstring + + +def get_tokens(source: str) -> List[tokenize_rt.Token]: + """ + Tokenize the given Python source, including special ``"DOCSTRING"`` tokens for function and class docstrings. + + :param source: + """ + + # TODO: module docstrings + + original_tokens = deque(tokenize_rt.src_to_tokens(source)) + + tokens: List[tokenize_rt.Token] = [] + + def _readahead_in(next_token: tokenize_rt.Token, names: Container[str]) -> tokenize_rt.Token: + while next_token.name in names: + tokens.append(next_token) + next_token = original_tokens.popleft() + + return next_token + + def _readahead_not_in(next_token: tokenize_rt.Token, names: Container[str]) -> tokenize_rt.Token: + while next_token.name not in names: + tokens.append(next_token) + next_token = original_tokens.popleft() + + return next_token + + while original_tokens: + token = original_tokens.popleft() + + tokens.append(token) + + if token.name == "NAME" and token.src in {"def", "class"}: + next_token = original_tokens.popleft() + + next_token = _readahead_in(next_token, {"UNIMPORTANT_WS"}) + + assert next_token.name == "NAME", next_token + function_name = next_token.src + + # Readahead to body + + next_token = _readahead_not_in(next_token, {"INDENT"}) + + while next_token.name not in {"STRING", "DEDENT"}: + tokens.append(next_token) + next_token = original_tokens.popleft() + + if next_token.name in {"OP", "NAME"}: + # Not going to be the docstring, lookahead to next line + next_token = _readahead_not_in(next_token, {"NEWLINE"}) + + if next_token.name == "STRING": + + next_token = DocstringToken( + name="DOCSTRING", + src=next_token.src, + line=next_token.line, + utf8_byte_offset=next_token.utf8_byte_offset, + function_name=function_name, + ) + + tokens.append(next_token) + + return tokens + +def _unified_diff(a: Sequence[str], b: Sequence[str], filename: str, offset: int) -> Iterator[str]: + + difflib._check_types(a, b, filename) # type: ignore[attr-defined] + + started = False + for group in difflib.SequenceMatcher(None, a, b).get_grouped_opcodes(3): + if not started: + started = True + yield f"--- {filename}\t(original)" + yield f"+++ {filename}\t(reformatted)" + + first, last = group[0], group[-1] + file1_range = difflib._format_range_unified( # type: ignore[attr-defined] + first[1] + offset, + last[2] + offset, + ) + file2_range = difflib._format_range_unified( # type: ignore[attr-defined] + first[3] + offset, + last[4] + offset, + ) + yield f'@@ -{file1_range} +{file2_range} @@' + + for tag, i1, i2, j1, j2 in group: + if tag == "equal": + for line in a[i1:i2]: + yield ' ' + line + continue + + if tag in {"replace", "delete"}: + for line in a[i1:i2]: + yield '-' + line + + if tag in {"replace", "insert"}: + for line in b[j1:j2]: + yield '+' + line + + +def diff( + token: tokenize_rt.Token, + reformatted: Sequence[str], + filename: str, + ) -> str: + """ + Construct a diff for the reformatted docstring. + + :param token: The docstring token. + :param reformatted: Reformatted docstring. + :param filename: + """ + + buf = StringList() + diff = _unified_diff(token.src.split('\n'), reformatted, filename, token.line - 1) + + for line in diff: + if line.startswith('+'): + buf.append(terminal_colours.Fore.GREEN(line)) + elif line.startswith('-'): + buf.append(terminal_colours.Fore.RED(line)) + else: + buf.append(line) + + buf.blankline(ensure_single=True) + + return str(buf) diff --git a/snippet_fmt/formatters.py b/snippet_fmt/formatters.py index 3204ff1..46f4340 100644 --- a/snippet_fmt/formatters.py +++ b/snippet_fmt/formatters.py @@ -102,14 +102,33 @@ def format_python(code: str, **config) -> str: :returns: The reformatted code. """ + is_console = True + console_prompts = [] + + code_lines = code.splitlines() + for line in code_lines: + if not is_console: + break + + if line and not line.isspace(): + is_console = line.startswith("... ") or line.startswith(">>> ") + + if is_console: + console_prompts = [l[:4] for l in code_lines] + code = '\n'.join([l[4:] for l in code_lines]) + if config.get("reformat", False): formate_config = formate.config.load_toml(config.get("config-file", "formate.toml")) r = StringReformatter(code, formate_config) r.run() - return r.to_string() + code = r.to_string() else: ast.parse(code) - return code + + if is_console: + return '\n'.join([p + l for p, l in zip(console_prompts, code.splitlines())]) + + return code def format_toml(code: str, **config) -> str: diff --git a/tests/py_code.rst b/tests/py_code.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/py_code.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/requirements.txt b/tests/requirements.txt index 54dc263..6d826dd 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -2,6 +2,7 @@ coincidence>=0.2.0 consolekit[testing]>=1.2.3 coverage>=5.1 coverage-pyver-pragma>=0.2.1 +formate-trailing-commas>=0.1.1 importlib-metadata>=3.6.0 pytest>=6.0.0 pytest-cov>=2.8.1 diff --git a/tests/test_snippet_fmt.py b/tests/test_snippet_fmt.py index 718d78e..1c6bdb9 100644 --- a/tests/test_snippet_fmt.py +++ b/tests/test_snippet_fmt.py @@ -1,4 +1,7 @@ # stdlib +import shutil +import textwrap +from pathlib import Path from typing import Dict, Iterator, List, Union, no_type_check # 3rd party @@ -13,7 +16,7 @@ from domdf_python_tools.paths import PathPlus, TemporaryPathPlus, in_directory # this package -from snippet_fmt import SnippetFmtConfigDict, reformat_file +from snippet_fmt import SnippetFmtConfigDict, reformat_docstrings, reformat_file from snippet_fmt.__main__ import main source_dir = PathPlus(__file__).parent @@ -31,59 +34,92 @@ pytest.param(["code-block", "code", "parsed-literal"], id='7'), ], ) +base_languages = [ + pytest.param({}, id="empty"), + pytest.param({"python": {"reformat": True}}, id="python"), + pytest.param({"python3": {"reformat": True}}, id="python3"), + pytest.param( + {"python3": {"reformat": True}, "toml": {"reformat": False}}, + id="python3_toml_false", + ), + pytest.param({"TOML": {"reformat": True}}, id="toml_caps"), + pytest.param({"toml": {"reformat": True}}, id="toml"), + pytest.param( + {"toml": {"reformat": True}, "python": {"reformat": False}}, + id="toml_python_false", + ), + pytest.param({"INI": {"reformat": True}}, id="ini_caps"), + pytest.param({"ini": {"reformat": True}}, id="ini"), + pytest.param( + {"ini": {"reformat": True}, "python": {"reformat": False}}, + id="ini_python_false", + ), + ] +json_languages = [ + pytest.param({"JSON": {"reformat": True}}, id="json_caps", marks=max_version("3.12")), + pytest.param( + {"JSON": {"reformat": True}}, + id="json_caps_new_error_msg", + marks=min_version("3.13"), + ), + pytest.param({"json": {"reformat": True}}, id="json", marks=max_version("3.12")), + pytest.param({"json": {"reformat": True}}, id="json_new_error_msg", marks=min_version("3.13")), + pytest.param( + {"JSON": {"reformat": True, "indent": 2}, "json": {"reformat": True}}, + id="json_caps_indent", + marks=max_version("3.12"), + ), + pytest.param( + {"JSON": {"reformat": True, "indent": 2}, "json": {"reformat": True}}, + id="json_caps_indent_new_error_msg", + marks=min_version("3.13"), + ), + pytest.param( + {"json": {"reformat": True, "indent": 2}, "JSON": {"reformat": True}}, + id="json_indent", + marks=max_version("3.12"), + ), + pytest.param( + {"json": {"reformat": True, "indent": 2}, "JSON": {"reformat": True}}, + id="json_indent_new_error_msg", + marks=min_version("3.13"), + ), + ] languages = pytest.mark.parametrize( "languages", + base_languages + json_languages, + ) +filenames = pytest.mark.parametrize( + "filename", [ - pytest.param({}, id="empty"), - pytest.param({"python": {"reformat": True}}, id="python"), - pytest.param({"python3": {"reformat": True}}, id="python3"), - pytest.param( - {"python3": {"reformat": True}, "toml": {"reformat": False}}, - id="python3_toml_false", - ), - pytest.param({"TOML": {"reformat": True}}, id="toml_caps"), - pytest.param({"toml": {"reformat": True}}, id="toml"), - pytest.param( - {"toml": {"reformat": True}, "python": {"reformat": False}}, - id="toml_python_false", - ), - pytest.param({"INI": {"reformat": True}}, id="ini_caps"), - pytest.param({"ini": {"reformat": True}}, id="ini"), - pytest.param( - {"ini": {"reformat": True}, "python": {"reformat": False}}, - id="ini_python_false", - ), - pytest.param({"JSON": {"reformat": True}}, id="json_caps", marks=max_version("3.12")), - pytest.param( - {"JSON": {"reformat": True}}, - id="json_caps_new_error_msg", - marks=min_version("3.13"), - ), - pytest.param({"json": {"reformat": True}}, id="json", marks=max_version("3.12")), - pytest.param({"json": {"reformat": True}}, id="json_new_error_msg", marks=min_version("3.13")), - pytest.param( - {"JSON": {"reformat": True, "indent": 2}, "json": {"reformat": True}}, - id="json_caps_indent", - marks=max_version("3.12"), - ), - pytest.param( - {"JSON": {"reformat": True, "indent": 2}, "json": {"reformat": True}}, - id="json_caps_indent_new_error_msg", - marks=min_version("3.13"), - ), - pytest.param( - {"json": {"reformat": True, "indent": 2}, "JSON": {"reformat": True}}, - id="json_indent", - marks=max_version("3.12"), - ), - pytest.param( - {"json": {"reformat": True, "indent": 2}, "JSON": {"reformat": True}}, - id="json_indent_new_error_msg", - marks=min_version("3.13"), - ), + param("example.rst", idx=0), + param("py_code.rst", idx=0), ], ) -filenames = pytest.mark.parametrize("filename", [param("example.rst", idx=0)]) + + +@pytest.fixture() +def tmp_pathplus_clean(tmp_path: Path) -> Iterator[PathPlus]: + """ + Pytest fixture which returns a temporary directory in the form of a + :class:`~domdf_python_tools.paths.PathPlus` object. + + The directory is unique to each test function invocation, + created as a sub directory of the base temporary directory. + + Use it as follows: + + .. code-block:: python + + pytest_plugins = ("coincidence", ) + + def test_something(tmp_pathplus_clean: PathPlus): + assert True + """ # noqa: D400 + + p = PathPlus(tmp_path) + yield p + shutil.rmtree(p) @pytest.fixture() @@ -114,30 +150,265 @@ class TestReformatFile: def test_snippet_fmt( self, filename: str, - tmp_pathplus: PathPlus, + tmp_pathplus_clean: PathPlus, directives: List[str], languages: Dict, advanced_file_regression: AdvancedFileRegressionFixture, advanced_data_regression: AdvancedDataRegressionFixture, capsys, ): - (tmp_pathplus / filename).write_text((source_dir / filename).read_text()) - (tmp_pathplus / "formate.toml").write_text((source_dir / "example_formate.toml").read_text()) + (tmp_pathplus_clean / filename).write_text((source_dir / filename).read_text()) + (tmp_pathplus_clean / "formate.toml").write_text((source_dir / "example_formate.toml").read_text()) + + config: SnippetFmtConfigDict = {"languages": languages, "directives": directives} + + with in_directory(tmp_pathplus_clean): + reformat_file(tmp_pathplus_clean / filename, config) + + advanced_file_regression.check_file(tmp_pathplus_clean / filename) + check_out(capsys.readouterr(), tmp_pathplus_clean, advanced_data_regression) + + @directives + @pytest.mark.parametrize("languages", base_languages) + @filenames + @pytest.mark.parametrize( + "quotes", + [ + param("'''", id="single"), + param('"""', id="double"), + ], + ) + @pytest.mark.parametrize( + "indent", + [ + param('\t', id="tab"), + param(" ", id="4s"), + param(" ", id="8s"), + ], + ) + def test_docstrings( + self, + filename: str, + tmp_pathplus_clean: PathPlus, + directives: List[str], + languages: Dict, + quotes: str, + indent: str, + advanced_file_regression: AdvancedFileRegressionFixture, + advanced_data_regression: AdvancedDataRegressionFixture, + capsys, + ): + docstring = textwrap.indent((source_dir / filename).read_text(), indent) + template = f"def foo():\n{indent}{quotes}\n" + "{d}" + f"{indent}{quotes}\n{indent}pass\n" + py_filename = (tmp_pathplus_clean / filename).with_suffix(".py") + py_filename.write_text(template.format_map({'d': docstring})) + (tmp_pathplus_clean / "formate.toml").write_text((source_dir / "example_formate.toml").read_text()) + + config: SnippetFmtConfigDict = {"languages": languages, "directives": directives} + + with in_directory(tmp_pathplus_clean): + reformat_docstrings(py_filename, config) + + advanced_file_regression.check_file(py_filename) + check_out(capsys.readouterr(), tmp_pathplus_clean, advanced_data_regression) + + @pytest.mark.parametrize( + "directives", + [ + pytest.param(["code-block"], id='0'), + ], + ) + @pytest.mark.parametrize( + "languages", + [ + pytest.param({}, id="empty"), + pytest.param({"python": {"reformat": True}}, id="python"), + pytest.param({"python3": {"reformat": True}}, id="python3"), + ], + ) + @filenames + @pytest.mark.parametrize( + "quotes", + [ + param('"""', id="double"), + ], + ) + @pytest.mark.parametrize( + "indent", + [ + param(" ", id="4s"), + ], + ) + def test_docstrings_class( + self, + filename: str, + tmp_pathplus_clean: PathPlus, + directives: List[str], + languages: Dict, + quotes: str, + indent: str, + advanced_file_regression: AdvancedFileRegressionFixture, + advanced_data_regression: AdvancedDataRegressionFixture, + capsys, + ): + docstring = textwrap.indent((source_dir / filename).read_text(), indent) + template = f"class foo():\n{indent}{quotes}\n" + "{d}" + f"{indent}{quotes}\n{indent}pass\n" + py_filename = (tmp_pathplus_clean / filename).with_suffix(".py") + py_filename.write_text(template.format_map({'d': docstring})) + (tmp_pathplus_clean / "formate.toml").write_text((source_dir / "example_formate.toml").read_text()) + + config: SnippetFmtConfigDict = {"languages": languages, "directives": directives} + + with in_directory(tmp_pathplus_clean): + reformat_docstrings(py_filename, config) + + advanced_file_regression.check_file(py_filename) + check_out(capsys.readouterr(), tmp_pathplus_clean, advanced_data_regression) + + @pytest.mark.parametrize( + "directives", + [ + pytest.param(["code-block"], id='0'), + ], + ) + @pytest.mark.parametrize( + "languages", + [ + pytest.param({}, id="empty"), + pytest.param({"python": {"reformat": True}}, id="python"), + pytest.param({"python3": {"reformat": True}}, id="python3"), + ], + ) + @filenames + @pytest.mark.parametrize( + "quotes", + [ + param("'''", id="single"), + ], + ) + @pytest.mark.parametrize( + "indent", + [ + param('\t', id="tab"), + ], + ) + def test_docstrings_class_method( + self, + filename: str, + tmp_pathplus_clean: PathPlus, + directives: List[str], + languages: Dict, + quotes: str, + indent: str, + advanced_file_regression: AdvancedFileRegressionFixture, + advanced_data_regression: AdvancedDataRegressionFixture, + capsys, + ): + docstring = textwrap.indent((source_dir / filename).read_text(), indent * 2) + template = f"class foo():\n{indent}def bar():\n{indent*2}{quotes}\n" + "{d}" + f"{indent*2}{quotes}\n{indent*2}pass\n" + py_filename = (tmp_pathplus_clean / filename).with_suffix(".py") + py_filename.write_text(template.format_map({'d': docstring})) + (tmp_pathplus_clean / "formate.toml").write_text((source_dir / "example_formate.toml").read_text()) + + config: SnippetFmtConfigDict = {"languages": languages, "directives": directives} + + with in_directory(tmp_pathplus_clean): + reformat_docstrings(py_filename, config) + + advanced_file_regression.check_file(py_filename) + check_out(capsys.readouterr(), tmp_pathplus_clean, advanced_data_regression) + + @directives + @pytest.mark.parametrize("languages", base_languages) + @pytest.mark.parametrize( + "quotes", + [ + param("'", id="single"), + param('"', id="double"), + ], + ) + @pytest.mark.parametrize( + "indent", + [ + param('\t', id="tab"), + param(" ", id="4s"), + param(" ", id="8s"), + ], + ) + def test_docstrings_single_line( + self, + tmp_pathplus_clean: PathPlus, + directives: List[str], + languages: Dict, + quotes: str, + indent: str, + capsys, + ): + source = f"def foo():\n{indent}{quotes}This is a single-line docstring{quotes}\n{indent}pass\n" + py_filename = (tmp_pathplus_clean / "example.py") + py_filename.write_text(source) + (tmp_pathplus_clean / "formate.toml").write_text((source_dir / "example_formate.toml").read_text()) + + config: SnippetFmtConfigDict = {"languages": languages, "directives": directives} + + with in_directory(tmp_pathplus_clean): + reformat_docstrings(py_filename, config) + + assert py_filename.read_text() == source + outerr = capsys.readouterr() + assert not outerr.out + assert not outerr.err + + @directives + @pytest.mark.parametrize("languages", base_languages) + @filenames + def test_docstrings_empty_mod( + self, + filename: str, + tmp_pathplus_clean: PathPlus, + directives: List[str], + languages: Dict, + ): + + py_filename = (tmp_pathplus_clean / filename).with_suffix(".py") + py_filename.write_text('') + (tmp_pathplus_clean / "formate.toml").write_text((source_dir / "example_formate.toml").read_text()) + + config: SnippetFmtConfigDict = {"languages": languages, "directives": directives} + + with in_directory(tmp_pathplus_clean): + reformat_docstrings(py_filename, config) + + assert not py_filename.read_text() + + @directives + @pytest.mark.parametrize("languages", base_languages) + @filenames + def test_docstrings_empty_fn( + self, + filename: str, + tmp_pathplus_clean: PathPlus, + directives: List[str], + languages: Dict, + ): + + py_filename = (tmp_pathplus_clean / filename).with_suffix(".py") + py_filename.write_text("def foo():\n\tpass\n") + (tmp_pathplus_clean / "formate.toml").write_text((source_dir / "example_formate.toml").read_text()) config: SnippetFmtConfigDict = {"languages": languages, "directives": directives} - with in_directory(tmp_pathplus): - reformat_file(tmp_pathplus / filename, config) + with in_directory(tmp_pathplus_clean): + reformat_docstrings(py_filename, config) - advanced_file_regression.check_file(tmp_pathplus / filename) - check_out(capsys.readouterr(), tmp_pathplus, advanced_data_regression) + assert py_filename.read_text() == "def foo():\n\tpass\n" @pytest.mark.usefixtures("custom_entry_point") @filenames def test_snippet_fmt_custom_entry_point( self, filename: str, - tmp_pathplus: PathPlus, + tmp_pathplus_clean: PathPlus, advanced_file_regression: AdvancedFileRegressionFixture, advanced_data_regression: AdvancedDataRegressionFixture, capsys, @@ -146,16 +417,16 @@ def test_snippet_fmt_custom_entry_point( languages = {"python3": {"reformat": True}} directives = ["code-block", "code-cell"] - (tmp_pathplus / filename).write_text((source_dir / filename).read_text()) - (tmp_pathplus / "formate.toml").write_text((source_dir / "example_formate.toml").read_text()) + (tmp_pathplus_clean / filename).write_text((source_dir / filename).read_text()) + (tmp_pathplus_clean / "formate.toml").write_text((source_dir / "example_formate.toml").read_text()) config: SnippetFmtConfigDict = {"languages": languages, "directives": directives} - with in_directory(tmp_pathplus): - reformat_file(tmp_pathplus / filename, config) + with in_directory(tmp_pathplus_clean): + reformat_file(tmp_pathplus_clean / filename, config) - advanced_file_regression.check_file(tmp_pathplus / filename) - check_out(capsys.readouterr(), tmp_pathplus, advanced_data_regression) + advanced_file_regression.check_file(tmp_pathplus_clean / filename) + check_out(capsys.readouterr(), tmp_pathplus_clean, advanced_data_regression) class TestCLI: @@ -166,42 +437,101 @@ class TestCLI: def test_snippet_fmt( self, filename: str, - tmp_pathplus: PathPlus, + tmp_pathplus_clean: PathPlus, directives: List[str], languages: Dict, advanced_file_regression: AdvancedFileRegressionFixture, advanced_data_regression: AdvancedDataRegressionFixture, - capsys, - cli_runner: CliRunner, ): - (tmp_pathplus / filename).write_text((source_dir / filename).read_text()) - (tmp_pathplus / "formate.toml").write_text((source_dir / "example_formate.toml").read_text()) + (tmp_pathplus_clean / filename).write_text((source_dir / filename).read_text()) + (tmp_pathplus_clean / "formate.toml").write_text((source_dir / "example_formate.toml").read_text()) dom_toml.dump( {"tool": {"snippet-fmt": {"languages": languages, "directives": directives}}}, - tmp_pathplus / "pyproject.toml", + tmp_pathplus_clean / "pyproject.toml", ) - with in_directory(tmp_pathplus): + with in_directory(tmp_pathplus_clean): runner = CliRunner(mix_stderr=False) result = runner.invoke( main, args=[filename, "--no-colour", "--diff"], ) - advanced_file_regression.check_file(tmp_pathplus / filename) + advanced_file_regression.check_file(tmp_pathplus_clean / filename) - check_out(result, tmp_pathplus, advanced_data_regression) + check_out(result, tmp_pathplus_clean, advanced_data_regression) # Calling a second time shouldn't change anything - st = (tmp_pathplus / filename).stat() + st = (tmp_pathplus_clean / filename).stat() assert st == st - with in_directory(tmp_pathplus): + with in_directory(tmp_pathplus_clean): runner = CliRunner(mix_stderr=False) runner.invoke(main, args=[filename]) # mtime should be the same - assert (tmp_pathplus / filename).stat().st_mtime == st.st_mtime + assert (tmp_pathplus_clean / filename).stat().st_mtime == st.st_mtime + + @directives + @pytest.mark.parametrize("languages", base_languages) + @filenames + @pytest.mark.parametrize( + "quotes", + [ + param("'''", id="single"), + param('"""', id="double"), + ], + ) + @pytest.mark.parametrize( + "indent", + [ + param('\t', id="tab"), + param(" ", id="4s"), + param(" ", id="8s"), + ], + ) + def test_docstrings( + self, + filename: str, + tmp_pathplus_clean: PathPlus, + directives: List[str], + languages: Dict, + quotes: str, + indent: str, + advanced_file_regression: AdvancedFileRegressionFixture, + advanced_data_regression: AdvancedDataRegressionFixture, + ): + docstring = textwrap.indent((source_dir / filename).read_text(), indent) + template = f"def foo():\n{indent}{quotes}\n" + "{d}" + f"{indent}{quotes}\n{indent}pass\n" + py_filename = (tmp_pathplus_clean / filename).with_suffix(".py") + py_filename.write_text(template.format_map({'d': docstring})) + (tmp_pathplus_clean / "formate.toml").write_text((source_dir / "example_formate.toml").read_text()) + dom_toml.dump( + {"tool": {"snippet-fmt": {"languages": languages, "directives": directives}}}, + tmp_pathplus_clean / "pyproject.toml", + ) + + with in_directory(tmp_pathplus_clean): + runner = CliRunner(mix_stderr=False) + result = runner.invoke( + main, + args=[py_filename.name, "--no-colour", "--diff"], + ) + + advanced_file_regression.check_file(py_filename) + + # check_out(result, tmp_pathplus_clean, advanced_data_regression) + + # Calling a second time shouldn't change anything + st = py_filename.stat() + assert st == st + + with in_directory(tmp_pathplus_clean): + runner = CliRunner(mix_stderr=False) + runner.invoke(main, args=[py_filename.name]) + + # mtime should be the same + assert py_filename.stat().st_mtime == st.st_mtime @no_type_check diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_0_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_1_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_2_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_3_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_4_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_5_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_5_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_6_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_6_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_7_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_empty_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_0_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_1_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_2_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_3_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_4_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_5_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_5_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_6_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_6_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_7_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_0_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_1_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_2_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_3_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_4_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_5_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_5_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_6_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_6_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_7_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_caps_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_0_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_1_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_2_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_3_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_4_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_5_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_5_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_6_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_6_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_7_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_ini_python_false_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_0_._py_ new file mode 100644 index 0000000..99bf529 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_0_.yml new file mode 100644 index 0000000..a099ee3 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_0_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_1_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_2_._py_ new file mode 100644 index 0000000..60ebdd9 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_2_._py_ @@ -0,0 +1,146 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_2_.yml new file mode 100644 index 0000000..d325be5 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_2_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -30,12 +30,11 @@' +- ' .. code-cell:: python3' +- " \t:count: 1" +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_3_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_4_._py_ new file mode 100644 index 0000000..99bf529 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_4_.yml new file mode 100644 index 0000000..a099ee3 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_4_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_5_._py_ new file mode 100644 index 0000000..80d2cba --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_5_._py_ @@ -0,0 +1,146 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_5_.yml new file mode 100644 index 0000000..92a06c8 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_5_.yml @@ -0,0 +1,48 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,29 +13,28 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- " \t:count: 1" +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_6_._py_ new file mode 100644 index 0000000..80d2cba --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_6_._py_ @@ -0,0 +1,146 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_6_.yml new file mode 100644 index 0000000..92a06c8 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_6_.yml @@ -0,0 +1,48 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,29 +13,28 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- " \t:count: 1" +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_7_._py_ new file mode 100644 index 0000000..99bf529 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_7_.yml new file mode 100644 index 0000000..a099ee3 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_7_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_0_._py_ new file mode 100644 index 0000000..99bf529 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_0_.yml new file mode 100644 index 0000000..a099ee3 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_0_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_1_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_2_._py_ new file mode 100644 index 0000000..60ebdd9 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_2_._py_ @@ -0,0 +1,146 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_2_.yml new file mode 100644 index 0000000..d325be5 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_2_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -30,12 +30,11 @@' +- ' .. code-cell:: python3' +- " \t:count: 1" +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_3_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_3_.yml new file mode 100644 index 0000000..303ffcc --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_3_.yml @@ -0,0 +1,5 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_4_._py_ new file mode 100644 index 0000000..99bf529 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_4_.yml new file mode 100644 index 0000000..a099ee3 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_4_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_5_._py_ new file mode 100644 index 0000000..80d2cba --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_5_._py_ @@ -0,0 +1,146 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_5_.yml new file mode 100644 index 0000000..92a06c8 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_5_.yml @@ -0,0 +1,48 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,29 +13,28 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- " \t:count: 1" +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_6_._py_ new file mode 100644 index 0000000..80d2cba --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_6_._py_ @@ -0,0 +1,146 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_6_.yml new file mode 100644 index 0000000..eb8ac18 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_6_.yml @@ -0,0 +1,49 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,29 +13,28 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- " \t:count: 1" +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_7_._py_ new file mode 100644 index 0000000..99bf529 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_7_.yml new file mode 100644 index 0000000..a099ee3 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python3_toml_false_7_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_0_._py_ new file mode 100644 index 0000000..163319c --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_0_._py_ @@ -0,0 +1,146 @@ +def foo(): + """ + + .. code-block:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_0_.yml new file mode 100644 index 0000000..ebf5dff --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_0_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -3,12 +3,11 @@' +- '' +- ' .. code-block:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_1_._py_ new file mode 100644 index 0000000..5dad1f5 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_1_._py_ @@ -0,0 +1,146 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_1_.yml new file mode 100644 index 0000000..e5832a4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_1_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -40,12 +40,11 @@' +- '' +- ' .. code:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. sourcecode:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_2_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_3_._py_ new file mode 100644 index 0000000..55de27a --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_3_._py_ @@ -0,0 +1,146 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_3_.yml new file mode 100644 index 0000000..f150a6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_3_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -50,12 +50,11 @@' +- '' +- ' .. sourcecode:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. parsed-literal:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_4_._py_ new file mode 100644 index 0000000..8c29e99 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_4_._py_ @@ -0,0 +1,145 @@ +def foo(): + """ + + .. code-block:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_4_.yml new file mode 100644 index 0000000..d2d3c29 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_4_.yml @@ -0,0 +1,41 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -3,12 +3,11 @@' +- '' +- ' .. code-block:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '@@ -40,12 +39,11 @@' +- '' +- ' .. code:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. sourcecode:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_5_._py_ new file mode 100644 index 0000000..8c29e99 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_5_._py_ @@ -0,0 +1,145 @@ +def foo(): + """ + + .. code-block:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_5_.yml new file mode 100644 index 0000000..d2d3c29 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_5_.yml @@ -0,0 +1,41 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -3,12 +3,11 @@' +- '' +- ' .. code-block:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '@@ -40,12 +39,11 @@' +- '' +- ' .. code:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. sourcecode:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_6_._py_ new file mode 100644 index 0000000..109e443 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_6_._py_ @@ -0,0 +1,144 @@ +def foo(): + """ + + .. code-block:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. sourcecode:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_6_.yml new file mode 100644 index 0000000..ad1b98c --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_6_.yml @@ -0,0 +1,55 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -3,12 +3,11 @@' +- '' +- ' .. code-block:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '@@ -40,22 +39,20 @@' +- '' +- ' .. code:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. sourcecode:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. parsed-literal:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_7_._py_ new file mode 100644 index 0000000..0d470ca --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_7_._py_ @@ -0,0 +1,144 @@ +def foo(): + """ + + .. code-block:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_7_.yml new file mode 100644 index 0000000..db8b1aa --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_python_7_.yml @@ -0,0 +1,58 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -3,12 +3,11 @@' +- '' +- ' .. code-block:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '@@ -40,12 +39,11 @@' +- '' +- ' .. code:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. sourcecode:: python' +- '@@ -60,12 +58,11 @@' +- '' +- ' .. parsed-literal:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: toml' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_0_._py_ new file mode 100644 index 0000000..b1309e1 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_0_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_0_.yml new file mode 100644 index 0000000..cdcbf3f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_0_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_1_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_2_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_3_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_3_.yml new file mode 100644 index 0000000..303ffcc --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_3_.yml @@ -0,0 +1,5 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_4_._py_ new file mode 100644 index 0000000..b1309e1 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_4_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_4_.yml new file mode 100644 index 0000000..cdcbf3f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_4_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_5_._py_ new file mode 100644 index 0000000..b1309e1 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_5_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_5_.yml new file mode 100644 index 0000000..cdcbf3f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_5_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_6_._py_ new file mode 100644 index 0000000..b1309e1 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_6_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_6_.yml new file mode 100644 index 0000000..621ff01 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_6_.yml @@ -0,0 +1,25 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_7_._py_ new file mode 100644 index 0000000..b1309e1 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_7_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_7_.yml new file mode 100644 index 0000000..cdcbf3f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_7_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_0_._py_ new file mode 100644 index 0000000..201ae78 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_0_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_0_.yml new file mode 100644 index 0000000..8ef54aa --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_0_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -83,13 +83,9 @@' +- ' .. code-block:: TOML' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_1_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_1_.yml new file mode 100644 index 0000000..e392663 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_1_.yml @@ -0,0 +1,6 @@ +err: +- '.../example.py:95: TOMLDecodeError: Invalid initial character for a key part (at + line 8, column 12)' +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_2_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_3_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_4_._py_ new file mode 100644 index 0000000..201ae78 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_4_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_4_.yml new file mode 100644 index 0000000..2743ca3 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_4_.yml @@ -0,0 +1,26 @@ +err: +- '.../example.py:95: TOMLDecodeError: Invalid initial character for a key part (at + line 8, column 12)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -83,13 +83,9 @@' +- ' .. code-block:: TOML' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_5_._py_ new file mode 100644 index 0000000..201ae78 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_5_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_5_.yml new file mode 100644 index 0000000..2743ca3 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_5_.yml @@ -0,0 +1,26 @@ +err: +- '.../example.py:95: TOMLDecodeError: Invalid initial character for a key part (at + line 8, column 12)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -83,13 +83,9 @@' +- ' .. code-block:: TOML' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_6_._py_ new file mode 100644 index 0000000..201ae78 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_6_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_6_.yml new file mode 100644 index 0000000..2743ca3 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_6_.yml @@ -0,0 +1,26 @@ +err: +- '.../example.py:95: TOMLDecodeError: Invalid initial character for a key part (at + line 8, column 12)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -83,13 +83,9 @@' +- ' .. code-block:: TOML' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_7_._py_ new file mode 100644 index 0000000..201ae78 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_7_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_7_.yml new file mode 100644 index 0000000..2743ca3 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_caps_7_.yml @@ -0,0 +1,26 @@ +err: +- '.../example.py:95: TOMLDecodeError: Invalid initial character for a key part (at + line 8, column 12)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -83,13 +83,9 @@' +- ' .. code-block:: TOML' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_0_._py_ new file mode 100644 index 0000000..b1309e1 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_0_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_0_.yml new file mode 100644 index 0000000..cdcbf3f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_0_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_1_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_2_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_3_._py_ new file mode 100644 index 0000000..5bc55a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_3_.yml new file mode 100644 index 0000000..303ffcc --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_3_.yml @@ -0,0 +1,5 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_4_._py_ new file mode 100644 index 0000000..b1309e1 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_4_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_4_.yml new file mode 100644 index 0000000..cdcbf3f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_4_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_5_._py_ new file mode 100644 index 0000000..b1309e1 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_5_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_5_.yml new file mode 100644 index 0000000..cdcbf3f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_5_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_6_._py_ new file mode 100644 index 0000000..b1309e1 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_6_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_6_.yml new file mode 100644 index 0000000..621ff01 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_6_.yml @@ -0,0 +1,25 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_7_._py_ new file mode 100644 index 0000000..b1309e1 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_7_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_7_.yml new file mode 100644 index 0000000..cdcbf3f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_example_rst_toml_python_false_7_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_0_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_1_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_2_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_3_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_4_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_5_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_6_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_7_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_empty_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_0_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_1_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_2_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_3_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_4_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_5_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_6_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_7_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_0_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_1_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_2_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_3_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_4_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_5_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_6_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_7_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_caps_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_0_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_1_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_2_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_3_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_4_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_5_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_6_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_7_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_ini_python_false_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_0_._py_ new file mode 100644 index 0000000..facbc1a --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_0_.yml new file mode 100644 index 0000000..7f9753e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_0_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' """' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_1_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_2_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_3_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_4_._py_ new file mode 100644 index 0000000..facbc1a --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_4_.yml new file mode 100644 index 0000000..7f9753e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_4_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' """' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_5_._py_ new file mode 100644 index 0000000..facbc1a --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_5_.yml new file mode 100644 index 0000000..7f9753e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_5_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' """' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_6_._py_ new file mode 100644 index 0000000..facbc1a --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_6_.yml new file mode 100644 index 0000000..7f9753e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_6_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' """' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_7_._py_ new file mode 100644 index 0000000..facbc1a --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_7_.yml new file mode 100644 index 0000000..7f9753e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_7_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' """' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_0_._py_ new file mode 100644 index 0000000..facbc1a --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_0_.yml new file mode 100644 index 0000000..7f9753e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_0_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' """' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_1_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_2_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_3_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_4_._py_ new file mode 100644 index 0000000..facbc1a --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_4_.yml new file mode 100644 index 0000000..7f9753e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_4_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' """' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_5_._py_ new file mode 100644 index 0000000..facbc1a --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_5_.yml new file mode 100644 index 0000000..7f9753e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_5_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' """' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_6_._py_ new file mode 100644 index 0000000..facbc1a --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_6_.yml new file mode 100644 index 0000000..7f9753e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_6_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' """' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_7_._py_ new file mode 100644 index 0000000..facbc1a --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_7_.yml new file mode 100644 index 0000000..7f9753e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python3_toml_false_7_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' """' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_0_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_1_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_2_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_3_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_4_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_5_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_6_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_7_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_python_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_0_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_1_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_2_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_3_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_4_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_5_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_6_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_7_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_0_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_1_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_2_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_3_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_4_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_5_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_6_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_7_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_caps_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_0_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_1_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_2_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_3_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_4_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_5_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_6_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_7_._py_ new file mode 100644 index 0000000..fee2619 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_double_py_code_rst_toml_python_false_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_0_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_1_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_2_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_3_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_4_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_5_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_5_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_6_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_6_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_7_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_empty_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_0_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_1_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_2_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_3_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_4_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_5_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_5_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_6_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_6_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_7_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_0_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_1_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_2_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_3_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_4_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_5_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_5_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_6_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_6_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_7_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_caps_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_0_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_1_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_2_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_3_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_4_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_5_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_5_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_6_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_6_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_7_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_ini_python_false_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_0_._py_ new file mode 100644 index 0000000..1b04f76 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_0_.yml new file mode 100644 index 0000000..a099ee3 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_0_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_1_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_2_._py_ new file mode 100644 index 0000000..d2c90d6 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_2_._py_ @@ -0,0 +1,146 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_2_.yml new file mode 100644 index 0000000..d325be5 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_2_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -30,12 +30,11 @@' +- ' .. code-cell:: python3' +- " \t:count: 1" +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_3_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_4_._py_ new file mode 100644 index 0000000..1b04f76 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_4_.yml new file mode 100644 index 0000000..a099ee3 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_4_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_5_._py_ new file mode 100644 index 0000000..207f988 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_5_._py_ @@ -0,0 +1,146 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_5_.yml new file mode 100644 index 0000000..92a06c8 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_5_.yml @@ -0,0 +1,48 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,29 +13,28 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- " \t:count: 1" +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_6_._py_ new file mode 100644 index 0000000..207f988 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_6_._py_ @@ -0,0 +1,146 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_6_.yml new file mode 100644 index 0000000..92a06c8 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_6_.yml @@ -0,0 +1,48 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,29 +13,28 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- " \t:count: 1" +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_7_._py_ new file mode 100644 index 0000000..1b04f76 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_7_.yml new file mode 100644 index 0000000..a099ee3 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_7_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_0_._py_ new file mode 100644 index 0000000..1b04f76 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_0_.yml new file mode 100644 index 0000000..a099ee3 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_0_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_1_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_2_._py_ new file mode 100644 index 0000000..d2c90d6 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_2_._py_ @@ -0,0 +1,146 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_2_.yml new file mode 100644 index 0000000..d325be5 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_2_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -30,12 +30,11 @@' +- ' .. code-cell:: python3' +- " \t:count: 1" +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_3_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_3_.yml new file mode 100644 index 0000000..303ffcc --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_3_.yml @@ -0,0 +1,5 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_4_._py_ new file mode 100644 index 0000000..1b04f76 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_4_.yml new file mode 100644 index 0000000..a099ee3 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_4_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_5_._py_ new file mode 100644 index 0000000..207f988 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_5_._py_ @@ -0,0 +1,146 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_5_.yml new file mode 100644 index 0000000..92a06c8 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_5_.yml @@ -0,0 +1,48 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,29 +13,28 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- " \t:count: 1" +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_6_._py_ new file mode 100644 index 0000000..207f988 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_6_._py_ @@ -0,0 +1,146 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_6_.yml new file mode 100644 index 0000000..eb8ac18 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_6_.yml @@ -0,0 +1,49 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,29 +13,28 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- " \t:count: 1" +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_7_._py_ new file mode 100644 index 0000000..1b04f76 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_7_.yml new file mode 100644 index 0000000..a099ee3 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python3_toml_false_7_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_0_._py_ new file mode 100644 index 0000000..d6aa074 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_0_._py_ @@ -0,0 +1,146 @@ +def foo(): + ''' + + .. code-block:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_0_.yml new file mode 100644 index 0000000..ebf5dff --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_0_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -3,12 +3,11 @@' +- '' +- ' .. code-block:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_1_._py_ new file mode 100644 index 0000000..9f0d50e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_1_._py_ @@ -0,0 +1,146 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_1_.yml new file mode 100644 index 0000000..e5832a4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_1_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -40,12 +40,11 @@' +- '' +- ' .. code:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. sourcecode:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_2_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_3_._py_ new file mode 100644 index 0000000..c3c94a7 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_3_._py_ @@ -0,0 +1,146 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_3_.yml new file mode 100644 index 0000000..f150a6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_3_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -50,12 +50,11 @@' +- '' +- ' .. sourcecode:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. parsed-literal:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_4_._py_ new file mode 100644 index 0000000..276b84e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_4_._py_ @@ -0,0 +1,145 @@ +def foo(): + ''' + + .. code-block:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_4_.yml new file mode 100644 index 0000000..d2d3c29 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_4_.yml @@ -0,0 +1,41 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -3,12 +3,11 @@' +- '' +- ' .. code-block:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '@@ -40,12 +39,11 @@' +- '' +- ' .. code:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. sourcecode:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_5_._py_ new file mode 100644 index 0000000..276b84e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_5_._py_ @@ -0,0 +1,145 @@ +def foo(): + ''' + + .. code-block:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_5_.yml new file mode 100644 index 0000000..d2d3c29 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_5_.yml @@ -0,0 +1,41 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -3,12 +3,11 @@' +- '' +- ' .. code-block:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '@@ -40,12 +39,11 @@' +- '' +- ' .. code:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. sourcecode:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_6_._py_ new file mode 100644 index 0000000..4f00e9a --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_6_._py_ @@ -0,0 +1,144 @@ +def foo(): + ''' + + .. code-block:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. sourcecode:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_6_.yml new file mode 100644 index 0000000..ad1b98c --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_6_.yml @@ -0,0 +1,55 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -3,12 +3,11 @@' +- '' +- ' .. code-block:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '@@ -40,22 +39,20 @@' +- '' +- ' .. code:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. sourcecode:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. parsed-literal:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_7_._py_ new file mode 100644 index 0000000..93f3220 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_7_._py_ @@ -0,0 +1,144 @@ +def foo(): + ''' + + .. code-block:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_7_.yml new file mode 100644 index 0000000..db8b1aa --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_python_7_.yml @@ -0,0 +1,58 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -3,12 +3,11 @@' +- '' +- ' .. code-block:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '@@ -40,12 +39,11 @@' +- '' +- ' .. code:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. sourcecode:: python' +- '@@ -60,12 +58,11 @@' +- '' +- ' .. parsed-literal:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: toml' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_0_._py_ new file mode 100644 index 0000000..6762f8b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_0_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_0_.yml new file mode 100644 index 0000000..cdcbf3f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_0_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_1_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_2_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_3_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_3_.yml new file mode 100644 index 0000000..303ffcc --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_3_.yml @@ -0,0 +1,5 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_4_._py_ new file mode 100644 index 0000000..6762f8b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_4_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_4_.yml new file mode 100644 index 0000000..cdcbf3f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_4_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_5_._py_ new file mode 100644 index 0000000..6762f8b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_5_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_5_.yml new file mode 100644 index 0000000..cdcbf3f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_5_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_6_._py_ new file mode 100644 index 0000000..6762f8b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_6_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_6_.yml new file mode 100644 index 0000000..621ff01 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_6_.yml @@ -0,0 +1,25 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_7_._py_ new file mode 100644 index 0000000..6762f8b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_7_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_7_.yml new file mode 100644 index 0000000..cdcbf3f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_7_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_0_._py_ new file mode 100644 index 0000000..4e636d7 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_0_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_0_.yml new file mode 100644 index 0000000..8ef54aa --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_0_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -83,13 +83,9 @@' +- ' .. code-block:: TOML' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_1_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_1_.yml new file mode 100644 index 0000000..e392663 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_1_.yml @@ -0,0 +1,6 @@ +err: +- '.../example.py:95: TOMLDecodeError: Invalid initial character for a key part (at + line 8, column 12)' +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_2_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_3_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_4_._py_ new file mode 100644 index 0000000..4e636d7 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_4_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_4_.yml new file mode 100644 index 0000000..2743ca3 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_4_.yml @@ -0,0 +1,26 @@ +err: +- '.../example.py:95: TOMLDecodeError: Invalid initial character for a key part (at + line 8, column 12)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -83,13 +83,9 @@' +- ' .. code-block:: TOML' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_5_._py_ new file mode 100644 index 0000000..4e636d7 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_5_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_5_.yml new file mode 100644 index 0000000..2743ca3 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_5_.yml @@ -0,0 +1,26 @@ +err: +- '.../example.py:95: TOMLDecodeError: Invalid initial character for a key part (at + line 8, column 12)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -83,13 +83,9 @@' +- ' .. code-block:: TOML' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_6_._py_ new file mode 100644 index 0000000..4e636d7 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_6_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_6_.yml new file mode 100644 index 0000000..2743ca3 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_6_.yml @@ -0,0 +1,26 @@ +err: +- '.../example.py:95: TOMLDecodeError: Invalid initial character for a key part (at + line 8, column 12)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -83,13 +83,9 @@' +- ' .. code-block:: TOML' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_7_._py_ new file mode 100644 index 0000000..4e636d7 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_7_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_7_.yml new file mode 100644 index 0000000..2743ca3 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_caps_7_.yml @@ -0,0 +1,26 @@ +err: +- '.../example.py:95: TOMLDecodeError: Invalid initial character for a key part (at + line 8, column 12)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -83,13 +83,9 @@' +- ' .. code-block:: TOML' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_0_._py_ new file mode 100644 index 0000000..6762f8b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_0_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_0_.yml new file mode 100644 index 0000000..cdcbf3f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_0_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_1_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_2_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_3_._py_ new file mode 100644 index 0000000..a348222 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_3_.yml new file mode 100644 index 0000000..303ffcc --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_3_.yml @@ -0,0 +1,5 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_4_._py_ new file mode 100644 index 0000000..6762f8b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_4_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_4_.yml new file mode 100644 index 0000000..cdcbf3f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_4_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_5_._py_ new file mode 100644 index 0000000..6762f8b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_5_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_5_.yml new file mode 100644 index 0000000..cdcbf3f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_5_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_6_._py_ new file mode 100644 index 0000000..6762f8b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_6_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_6_.yml new file mode 100644 index 0000000..621ff01 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_6_.yml @@ -0,0 +1,25 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_7_._py_ new file mode 100644 index 0000000..6762f8b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_7_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_7_.yml new file mode 100644 index 0000000..cdcbf3f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_example_rst_toml_python_false_7_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_0_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_1_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_2_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_3_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_4_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_5_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_6_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_7_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_empty_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_0_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_1_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_2_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_3_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_4_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_5_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_6_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_7_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_0_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_1_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_2_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_3_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_4_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_5_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_6_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_7_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_caps_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_0_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_1_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_2_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_3_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_4_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_5_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_6_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_7_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_ini_python_false_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_0_._py_ new file mode 100644 index 0000000..4ea7035 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_0_.yml new file mode 100644 index 0000000..c065a04 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_0_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' ''''''' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_1_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_2_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_3_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_4_._py_ new file mode 100644 index 0000000..4ea7035 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_4_.yml new file mode 100644 index 0000000..c065a04 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_4_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' ''''''' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_5_._py_ new file mode 100644 index 0000000..4ea7035 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_5_.yml new file mode 100644 index 0000000..c065a04 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_5_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' ''''''' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_6_._py_ new file mode 100644 index 0000000..4ea7035 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_6_.yml new file mode 100644 index 0000000..c065a04 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_6_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' ''''''' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_7_._py_ new file mode 100644 index 0000000..4ea7035 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_7_.yml new file mode 100644 index 0000000..c065a04 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_7_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' ''''''' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_0_._py_ new file mode 100644 index 0000000..4ea7035 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_0_.yml new file mode 100644 index 0000000..c065a04 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_0_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' ''''''' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_1_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_2_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_3_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_4_._py_ new file mode 100644 index 0000000..4ea7035 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_4_.yml new file mode 100644 index 0000000..c065a04 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_4_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' ''''''' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_5_._py_ new file mode 100644 index 0000000..4ea7035 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_5_.yml new file mode 100644 index 0000000..c065a04 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_5_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' ''''''' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_6_._py_ new file mode 100644 index 0000000..4ea7035 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_6_.yml new file mode 100644 index 0000000..c065a04 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_6_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' ''''''' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_7_._py_ new file mode 100644 index 0000000..4ea7035 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_7_.yml new file mode 100644 index 0000000..c065a04 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python3_toml_false_7_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' ''''''' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_0_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_1_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_2_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_3_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_4_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_5_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_6_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_7_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_python_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_0_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_1_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_2_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_3_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_4_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_5_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_6_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_7_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_0_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_1_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_2_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_3_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_4_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_5_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_6_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_7_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_caps_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_0_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_1_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_2_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_3_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_4_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_5_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_6_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_7_._py_ new file mode 100644 index 0000000..4504aec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_4s_single_py_code_rst_toml_python_false_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_0_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_1_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_2_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_3_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_4_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_5_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_5_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_6_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_6_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_7_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_empty_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_0_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_1_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_2_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_3_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_4_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_5_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_5_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_6_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_6_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_7_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_0_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_1_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_2_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_3_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_4_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_5_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_5_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_6_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_6_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_7_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_caps_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_0_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_1_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_2_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_3_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_4_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_5_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_5_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_6_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_6_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_7_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_ini_python_false_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_0_._py_ new file mode 100644 index 0000000..043364b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_0_.yml new file mode 100644 index 0000000..f188e66 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_0_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_1_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_2_._py_ new file mode 100644 index 0000000..77ec13e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_2_._py_ @@ -0,0 +1,146 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_2_.yml new file mode 100644 index 0000000..3120830 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_2_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -30,12 +30,11 @@' +- ' .. code-cell:: python3' +- " \t:count: 1" +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_3_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_4_._py_ new file mode 100644 index 0000000..043364b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_4_.yml new file mode 100644 index 0000000..f188e66 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_4_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_5_._py_ new file mode 100644 index 0000000..094f1a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_5_._py_ @@ -0,0 +1,146 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_5_.yml new file mode 100644 index 0000000..a1fbd87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_5_.yml @@ -0,0 +1,48 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,29 +13,28 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- " \t:count: 1" +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_6_._py_ new file mode 100644 index 0000000..094f1a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_6_._py_ @@ -0,0 +1,146 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_6_.yml new file mode 100644 index 0000000..a1fbd87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_6_.yml @@ -0,0 +1,48 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,29 +13,28 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- " \t:count: 1" +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_7_._py_ new file mode 100644 index 0000000..043364b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_7_.yml new file mode 100644 index 0000000..f188e66 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_7_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_0_._py_ new file mode 100644 index 0000000..043364b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_0_.yml new file mode 100644 index 0000000..f188e66 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_0_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_1_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_2_._py_ new file mode 100644 index 0000000..77ec13e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_2_._py_ @@ -0,0 +1,146 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_2_.yml new file mode 100644 index 0000000..3120830 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_2_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -30,12 +30,11 @@' +- ' .. code-cell:: python3' +- " \t:count: 1" +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_3_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_3_.yml new file mode 100644 index 0000000..303ffcc --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_3_.yml @@ -0,0 +1,5 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_4_._py_ new file mode 100644 index 0000000..043364b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_4_.yml new file mode 100644 index 0000000..f188e66 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_4_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_5_._py_ new file mode 100644 index 0000000..094f1a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_5_._py_ @@ -0,0 +1,146 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_5_.yml new file mode 100644 index 0000000..a1fbd87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_5_.yml @@ -0,0 +1,48 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,29 +13,28 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- " \t:count: 1" +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_6_._py_ new file mode 100644 index 0000000..094f1a0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_6_._py_ @@ -0,0 +1,146 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_6_.yml new file mode 100644 index 0000000..2a3a4a6 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_6_.yml @@ -0,0 +1,49 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,29 +13,28 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- " \t:count: 1" +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_7_._py_ new file mode 100644 index 0000000..043364b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_7_.yml new file mode 100644 index 0000000..f188e66 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python3_toml_false_7_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_0_._py_ new file mode 100644 index 0000000..bf7e6d1 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_0_._py_ @@ -0,0 +1,146 @@ +def foo(): + """ + + .. code-block:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_0_.yml new file mode 100644 index 0000000..9ceee4d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_0_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -3,12 +3,11 @@' +- '' +- ' .. code-block:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_1_._py_ new file mode 100644 index 0000000..33db261 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_1_._py_ @@ -0,0 +1,146 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_1_.yml new file mode 100644 index 0000000..b6dd912 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_1_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -40,12 +40,11 @@' +- '' +- ' .. code:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. sourcecode:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_2_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_3_._py_ new file mode 100644 index 0000000..3bafb35 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_3_._py_ @@ -0,0 +1,146 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_3_.yml new file mode 100644 index 0000000..8cfc5b0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_3_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -50,12 +50,11 @@' +- '' +- ' .. sourcecode:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. parsed-literal:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_4_._py_ new file mode 100644 index 0000000..6112005 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_4_._py_ @@ -0,0 +1,145 @@ +def foo(): + """ + + .. code-block:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_4_.yml new file mode 100644 index 0000000..a4ec948 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_4_.yml @@ -0,0 +1,41 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -3,12 +3,11 @@' +- '' +- ' .. code-block:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '@@ -40,12 +39,11 @@' +- '' +- ' .. code:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. sourcecode:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_5_._py_ new file mode 100644 index 0000000..6112005 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_5_._py_ @@ -0,0 +1,145 @@ +def foo(): + """ + + .. code-block:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_5_.yml new file mode 100644 index 0000000..a4ec948 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_5_.yml @@ -0,0 +1,41 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -3,12 +3,11 @@' +- '' +- ' .. code-block:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '@@ -40,12 +39,11 @@' +- '' +- ' .. code:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. sourcecode:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_6_._py_ new file mode 100644 index 0000000..2ace92a --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_6_._py_ @@ -0,0 +1,144 @@ +def foo(): + """ + + .. code-block:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. sourcecode:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_6_.yml new file mode 100644 index 0000000..229b0d7 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_6_.yml @@ -0,0 +1,55 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -3,12 +3,11 @@' +- '' +- ' .. code-block:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '@@ -40,22 +39,20 @@' +- '' +- ' .. code:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. sourcecode:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. parsed-literal:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_7_._py_ new file mode 100644 index 0000000..0b08e0e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_7_._py_ @@ -0,0 +1,144 @@ +def foo(): + """ + + .. code-block:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_7_.yml new file mode 100644 index 0000000..eeb2f73 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_python_7_.yml @@ -0,0 +1,58 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -3,12 +3,11 @@' +- '' +- ' .. code-block:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '@@ -40,12 +39,11 @@' +- '' +- ' .. code:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. sourcecode:: python' +- '@@ -60,12 +58,11 @@' +- '' +- ' .. parsed-literal:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: toml' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_0_._py_ new file mode 100644 index 0000000..b277aac --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_0_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_0_.yml new file mode 100644 index 0000000..d4cc3eb --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_0_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_1_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_2_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_3_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_3_.yml new file mode 100644 index 0000000..303ffcc --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_3_.yml @@ -0,0 +1,5 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_4_._py_ new file mode 100644 index 0000000..b277aac --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_4_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_4_.yml new file mode 100644 index 0000000..d4cc3eb --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_4_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_5_._py_ new file mode 100644 index 0000000..b277aac --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_5_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_5_.yml new file mode 100644 index 0000000..d4cc3eb --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_5_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_6_._py_ new file mode 100644 index 0000000..b277aac --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_6_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_6_.yml new file mode 100644 index 0000000..6a79961 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_6_.yml @@ -0,0 +1,25 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_7_._py_ new file mode 100644 index 0000000..b277aac --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_7_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_7_.yml new file mode 100644 index 0000000..d4cc3eb --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_7_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_0_._py_ new file mode 100644 index 0000000..5a21d21 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_0_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_0_.yml new file mode 100644 index 0000000..b200817 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_0_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -83,13 +83,9 @@' +- ' .. code-block:: TOML' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_1_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_1_.yml new file mode 100644 index 0000000..e392663 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_1_.yml @@ -0,0 +1,6 @@ +err: +- '.../example.py:95: TOMLDecodeError: Invalid initial character for a key part (at + line 8, column 12)' +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_2_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_3_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_4_._py_ new file mode 100644 index 0000000..5a21d21 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_4_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_4_.yml new file mode 100644 index 0000000..2c030ec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_4_.yml @@ -0,0 +1,26 @@ +err: +- '.../example.py:95: TOMLDecodeError: Invalid initial character for a key part (at + line 8, column 12)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -83,13 +83,9 @@' +- ' .. code-block:: TOML' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_5_._py_ new file mode 100644 index 0000000..5a21d21 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_5_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_5_.yml new file mode 100644 index 0000000..2c030ec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_5_.yml @@ -0,0 +1,26 @@ +err: +- '.../example.py:95: TOMLDecodeError: Invalid initial character for a key part (at + line 8, column 12)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -83,13 +83,9 @@' +- ' .. code-block:: TOML' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_6_._py_ new file mode 100644 index 0000000..5a21d21 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_6_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_6_.yml new file mode 100644 index 0000000..2c030ec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_6_.yml @@ -0,0 +1,26 @@ +err: +- '.../example.py:95: TOMLDecodeError: Invalid initial character for a key part (at + line 8, column 12)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -83,13 +83,9 @@' +- ' .. code-block:: TOML' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_7_._py_ new file mode 100644 index 0000000..5a21d21 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_7_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_7_.yml new file mode 100644 index 0000000..2c030ec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_caps_7_.yml @@ -0,0 +1,26 @@ +err: +- '.../example.py:95: TOMLDecodeError: Invalid initial character for a key part (at + line 8, column 12)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -83,13 +83,9 @@' +- ' .. code-block:: TOML' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_0_._py_ new file mode 100644 index 0000000..b277aac --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_0_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_0_.yml new file mode 100644 index 0000000..d4cc3eb --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_0_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_1_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_2_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_3_._py_ new file mode 100644 index 0000000..f4819d4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_3_.yml new file mode 100644 index 0000000..303ffcc --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_3_.yml @@ -0,0 +1,5 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_4_._py_ new file mode 100644 index 0000000..b277aac --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_4_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_4_.yml new file mode 100644 index 0000000..d4cc3eb --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_4_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_5_._py_ new file mode 100644 index 0000000..b277aac --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_5_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_5_.yml new file mode 100644 index 0000000..d4cc3eb --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_5_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_6_._py_ new file mode 100644 index 0000000..b277aac --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_6_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_6_.yml new file mode 100644 index 0000000..6a79961 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_6_.yml @@ -0,0 +1,25 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_7_._py_ new file mode 100644 index 0000000..b277aac --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_7_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_7_.yml new file mode 100644 index 0000000..d4cc3eb --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_example_rst_toml_python_false_7_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_0_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_1_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_2_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_3_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_4_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_5_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_6_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_7_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_empty_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_0_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_1_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_2_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_3_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_4_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_5_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_6_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_7_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_0_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_1_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_2_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_3_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_4_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_5_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_6_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_7_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_caps_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_0_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_1_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_2_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_3_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_4_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_5_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_6_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_7_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_ini_python_false_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_0_._py_ new file mode 100644 index 0000000..ab4dc3f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_0_.yml new file mode 100644 index 0000000..29a4745 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_0_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' """' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_1_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_2_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_3_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_4_._py_ new file mode 100644 index 0000000..ab4dc3f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_4_.yml new file mode 100644 index 0000000..29a4745 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_4_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' """' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_5_._py_ new file mode 100644 index 0000000..ab4dc3f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_5_.yml new file mode 100644 index 0000000..29a4745 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_5_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' """' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_6_._py_ new file mode 100644 index 0000000..ab4dc3f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_6_.yml new file mode 100644 index 0000000..29a4745 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_6_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' """' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_7_._py_ new file mode 100644 index 0000000..ab4dc3f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_7_.yml new file mode 100644 index 0000000..29a4745 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_7_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' """' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_0_._py_ new file mode 100644 index 0000000..ab4dc3f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_0_.yml new file mode 100644 index 0000000..29a4745 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_0_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' """' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_1_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_2_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_3_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_4_._py_ new file mode 100644 index 0000000..ab4dc3f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_4_.yml new file mode 100644 index 0000000..29a4745 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_4_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' """' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_5_._py_ new file mode 100644 index 0000000..ab4dc3f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_5_.yml new file mode 100644 index 0000000..29a4745 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_5_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' """' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_6_._py_ new file mode 100644 index 0000000..ab4dc3f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_6_.yml new file mode 100644 index 0000000..29a4745 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_6_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' """' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_7_._py_ new file mode 100644 index 0000000..ab4dc3f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_7_.yml new file mode 100644 index 0000000..29a4745 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python3_toml_false_7_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' """' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_0_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_1_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_2_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_3_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_4_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_5_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_6_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_7_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_python_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_0_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_1_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_2_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_3_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_4_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_5_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_6_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_7_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_0_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_1_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_2_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_3_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_4_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_5_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_6_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_7_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_caps_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_0_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_1_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_2_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_3_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_4_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_5_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_6_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_7_._py_ new file mode 100644 index 0000000..a40cf7e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_double_py_code_rst_toml_python_false_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_0_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_1_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_2_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_3_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_4_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_5_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_5_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_6_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_6_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_7_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_empty_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_0_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_1_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_2_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_3_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_4_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_5_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_5_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_6_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_6_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_7_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_0_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_1_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_2_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_3_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_4_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_5_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_5_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_6_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_6_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_7_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_caps_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_0_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_1_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_2_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_3_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_4_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_5_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_5_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_6_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_6_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_7_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_ini_python_false_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_0_._py_ new file mode 100644 index 0000000..aaf898d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_0_.yml new file mode 100644 index 0000000..f188e66 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_0_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_1_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_2_._py_ new file mode 100644 index 0000000..0d22163 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_2_._py_ @@ -0,0 +1,146 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_2_.yml new file mode 100644 index 0000000..3120830 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_2_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -30,12 +30,11 @@' +- ' .. code-cell:: python3' +- " \t:count: 1" +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_3_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_4_._py_ new file mode 100644 index 0000000..aaf898d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_4_.yml new file mode 100644 index 0000000..f188e66 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_4_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_5_._py_ new file mode 100644 index 0000000..0fc1826 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_5_._py_ @@ -0,0 +1,146 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_5_.yml new file mode 100644 index 0000000..a1fbd87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_5_.yml @@ -0,0 +1,48 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,29 +13,28 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- " \t:count: 1" +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_6_._py_ new file mode 100644 index 0000000..0fc1826 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_6_._py_ @@ -0,0 +1,146 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_6_.yml new file mode 100644 index 0000000..a1fbd87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_6_.yml @@ -0,0 +1,48 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,29 +13,28 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- " \t:count: 1" +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_7_._py_ new file mode 100644 index 0000000..aaf898d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_7_.yml new file mode 100644 index 0000000..f188e66 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_7_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_0_._py_ new file mode 100644 index 0000000..aaf898d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_0_.yml new file mode 100644 index 0000000..f188e66 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_0_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_1_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_2_._py_ new file mode 100644 index 0000000..0d22163 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_2_._py_ @@ -0,0 +1,146 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_2_.yml new file mode 100644 index 0000000..3120830 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_2_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -30,12 +30,11 @@' +- ' .. code-cell:: python3' +- " \t:count: 1" +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_3_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_3_.yml new file mode 100644 index 0000000..303ffcc --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_3_.yml @@ -0,0 +1,5 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_4_._py_ new file mode 100644 index 0000000..aaf898d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_4_.yml new file mode 100644 index 0000000..f188e66 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_4_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_5_._py_ new file mode 100644 index 0000000..0fc1826 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_5_._py_ @@ -0,0 +1,146 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_5_.yml new file mode 100644 index 0000000..a1fbd87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_5_.yml @@ -0,0 +1,48 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,29 +13,28 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- " \t:count: 1" +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_6_._py_ new file mode 100644 index 0000000..0fc1826 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_6_._py_ @@ -0,0 +1,146 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_6_.yml new file mode 100644 index 0000000..2a3a4a6 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_6_.yml @@ -0,0 +1,49 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,29 +13,28 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- " \t:count: 1" +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_7_._py_ new file mode 100644 index 0000000..aaf898d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_7_.yml new file mode 100644 index 0000000..f188e66 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python3_toml_false_7_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_0_._py_ new file mode 100644 index 0000000..ca7162f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_0_._py_ @@ -0,0 +1,146 @@ +def foo(): + ''' + + .. code-block:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_0_.yml new file mode 100644 index 0000000..9ceee4d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_0_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -3,12 +3,11 @@' +- '' +- ' .. code-block:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_1_._py_ new file mode 100644 index 0000000..36db866 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_1_._py_ @@ -0,0 +1,146 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_1_.yml new file mode 100644 index 0000000..b6dd912 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_1_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -40,12 +40,11 @@' +- '' +- ' .. code:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. sourcecode:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_2_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_3_._py_ new file mode 100644 index 0000000..bbd97b0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_3_._py_ @@ -0,0 +1,146 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_3_.yml new file mode 100644 index 0000000..8cfc5b0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_3_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -50,12 +50,11 @@' +- '' +- ' .. sourcecode:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. parsed-literal:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_4_._py_ new file mode 100644 index 0000000..3dab779 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_4_._py_ @@ -0,0 +1,145 @@ +def foo(): + ''' + + .. code-block:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_4_.yml new file mode 100644 index 0000000..a4ec948 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_4_.yml @@ -0,0 +1,41 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -3,12 +3,11 @@' +- '' +- ' .. code-block:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '@@ -40,12 +39,11 @@' +- '' +- ' .. code:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. sourcecode:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_5_._py_ new file mode 100644 index 0000000..3dab779 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_5_._py_ @@ -0,0 +1,145 @@ +def foo(): + ''' + + .. code-block:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_5_.yml new file mode 100644 index 0000000..a4ec948 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_5_.yml @@ -0,0 +1,41 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -3,12 +3,11 @@' +- '' +- ' .. code-block:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '@@ -40,12 +39,11 @@' +- '' +- ' .. code:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. sourcecode:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_6_._py_ new file mode 100644 index 0000000..14c3e1e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_6_._py_ @@ -0,0 +1,144 @@ +def foo(): + ''' + + .. code-block:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. sourcecode:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_6_.yml new file mode 100644 index 0000000..229b0d7 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_6_.yml @@ -0,0 +1,55 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -3,12 +3,11 @@' +- '' +- ' .. code-block:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '@@ -40,22 +39,20 @@' +- '' +- ' .. code:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. sourcecode:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. parsed-literal:: python' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_7_._py_ new file mode 100644 index 0000000..444f639 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_7_._py_ @@ -0,0 +1,144 @@ +def foo(): + ''' + + .. code-block:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_7_.yml new file mode 100644 index 0000000..eeb2f73 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_python_7_.yml @@ -0,0 +1,58 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -3,12 +3,11 @@' +- '' +- ' .. code-block:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '@@ -40,12 +39,11 @@' +- '' +- ' .. code:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. sourcecode:: python' +- '@@ -60,12 +58,11 @@' +- '' +- ' .. parsed-literal:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: toml' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_0_._py_ new file mode 100644 index 0000000..cb56a75 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_0_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_0_.yml new file mode 100644 index 0000000..d4cc3eb --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_0_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_1_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_2_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_3_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_3_.yml new file mode 100644 index 0000000..303ffcc --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_3_.yml @@ -0,0 +1,5 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_4_._py_ new file mode 100644 index 0000000..cb56a75 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_4_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_4_.yml new file mode 100644 index 0000000..d4cc3eb --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_4_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_5_._py_ new file mode 100644 index 0000000..cb56a75 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_5_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_5_.yml new file mode 100644 index 0000000..d4cc3eb --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_5_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_6_._py_ new file mode 100644 index 0000000..cb56a75 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_6_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_6_.yml new file mode 100644 index 0000000..6a79961 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_6_.yml @@ -0,0 +1,25 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_7_._py_ new file mode 100644 index 0000000..cb56a75 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_7_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_7_.yml new file mode 100644 index 0000000..d4cc3eb --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_7_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_0_._py_ new file mode 100644 index 0000000..2927381 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_0_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_0_.yml new file mode 100644 index 0000000..b200817 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_0_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -83,13 +83,9 @@' +- ' .. code-block:: TOML' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_1_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_1_.yml new file mode 100644 index 0000000..e392663 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_1_.yml @@ -0,0 +1,6 @@ +err: +- '.../example.py:95: TOMLDecodeError: Invalid initial character for a key part (at + line 8, column 12)' +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_2_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_3_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_4_._py_ new file mode 100644 index 0000000..2927381 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_4_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_4_.yml new file mode 100644 index 0000000..2c030ec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_4_.yml @@ -0,0 +1,26 @@ +err: +- '.../example.py:95: TOMLDecodeError: Invalid initial character for a key part (at + line 8, column 12)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -83,13 +83,9 @@' +- ' .. code-block:: TOML' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_5_._py_ new file mode 100644 index 0000000..2927381 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_5_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_5_.yml new file mode 100644 index 0000000..2c030ec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_5_.yml @@ -0,0 +1,26 @@ +err: +- '.../example.py:95: TOMLDecodeError: Invalid initial character for a key part (at + line 8, column 12)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -83,13 +83,9 @@' +- ' .. code-block:: TOML' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_6_._py_ new file mode 100644 index 0000000..2927381 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_6_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_6_.yml new file mode 100644 index 0000000..2c030ec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_6_.yml @@ -0,0 +1,26 @@ +err: +- '.../example.py:95: TOMLDecodeError: Invalid initial character for a key part (at + line 8, column 12)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -83,13 +83,9 @@' +- ' .. code-block:: TOML' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_7_._py_ new file mode 100644 index 0000000..2927381 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_7_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_7_.yml new file mode 100644 index 0000000..2c030ec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_caps_7_.yml @@ -0,0 +1,26 @@ +err: +- '.../example.py:95: TOMLDecodeError: Invalid initial character for a key part (at + line 8, column 12)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -83,13 +83,9 @@' +- ' .. code-block:: TOML' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_0_._py_ new file mode 100644 index 0000000..cb56a75 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_0_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_0_.yml new file mode 100644 index 0000000..d4cc3eb --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_0_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_1_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_2_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_3_._py_ new file mode 100644 index 0000000..641b22e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_3_.yml new file mode 100644 index 0000000..303ffcc --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_3_.yml @@ -0,0 +1,5 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_4_._py_ new file mode 100644 index 0000000..cb56a75 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_4_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_4_.yml new file mode 100644 index 0000000..d4cc3eb --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_4_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_5_._py_ new file mode 100644 index 0000000..cb56a75 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_5_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_5_.yml new file mode 100644 index 0000000..d4cc3eb --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_5_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_6_._py_ new file mode 100644 index 0000000..cb56a75 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_6_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_6_.yml new file mode 100644 index 0000000..6a79961 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_6_.yml @@ -0,0 +1,25 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_7_._py_ new file mode 100644 index 0000000..cb56a75 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_7_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_7_.yml new file mode 100644 index 0000000..d4cc3eb --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_example_rst_toml_python_false_7_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- ' .. code-block:: toml' +- '' +- " \t[project]" +- '-' +- '-' +- "- \tname = 'my-project'" +- '-' +- '-' +- "- \tversion=\"1.2.3\"" +- "- \tlicense = {file = \"LICENSE\"}" +- "+ \tname = \"my-project\"" +- "+ \tversion = \"1.2.3\"" +- "+ \tlicense = { file = \"LICENSE\" }" +- '' +- '' +- ' .. code-block:: TOML' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_0_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_1_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_2_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_3_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_4_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_5_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_6_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_7_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_empty_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_0_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_1_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_2_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_3_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_4_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_5_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_6_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_7_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_0_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_1_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_2_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_3_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_4_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_5_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_6_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_7_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_caps_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_0_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_1_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_2_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_3_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_4_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_5_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_6_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_7_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_ini_python_false_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_0_._py_ new file mode 100644 index 0000000..8480007 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_0_.yml new file mode 100644 index 0000000..58bbf69 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_0_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' ''''''' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_1_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_2_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_3_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_4_._py_ new file mode 100644 index 0000000..8480007 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_4_.yml new file mode 100644 index 0000000..58bbf69 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_4_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' ''''''' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_5_._py_ new file mode 100644 index 0000000..8480007 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_5_.yml new file mode 100644 index 0000000..58bbf69 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_5_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' ''''''' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_6_._py_ new file mode 100644 index 0000000..8480007 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_6_.yml new file mode 100644 index 0000000..58bbf69 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_6_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' ''''''' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_7_._py_ new file mode 100644 index 0000000..8480007 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_7_.yml new file mode 100644 index 0000000..58bbf69 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_7_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' ''''''' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_0_._py_ new file mode 100644 index 0000000..8480007 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_0_.yml new file mode 100644 index 0000000..58bbf69 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_0_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' ''''''' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_1_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_2_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_3_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_4_._py_ new file mode 100644 index 0000000..8480007 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_4_.yml new file mode 100644 index 0000000..58bbf69 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_4_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' ''''''' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_5_._py_ new file mode 100644 index 0000000..8480007 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_5_.yml new file mode 100644 index 0000000..58bbf69 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_5_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' ''''''' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_6_._py_ new file mode 100644 index 0000000..8480007 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_6_.yml new file mode 100644 index 0000000..58bbf69 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_6_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' ''''''' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_7_._py_ new file mode 100644 index 0000000..8480007 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_7_.yml new file mode 100644 index 0000000..58bbf69 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python3_toml_false_7_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' ''''''' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_0_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_1_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_2_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_3_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_4_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_5_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_6_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_7_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_python_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_0_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_1_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_2_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_3_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_4_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_5_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_6_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_7_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_0_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_1_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_2_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_3_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_4_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_5_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_6_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_7_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_caps_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_0_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_1_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_2_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_3_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_4_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_5_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_6_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_7_._py_ new file mode 100644 index 0000000..630d395 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_8s_single_py_code_rst_toml_python_false_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_class_4s_double_example_rst_empty_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_class_4s_double_example_rst_empty_0_._py_ new file mode 100644 index 0000000..96ea063 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_class_4s_double_example_rst_empty_0_._py_ @@ -0,0 +1,147 @@ +class foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_class_4s_double_example_rst_empty_0_.yml b/tests/test_snippet_fmt_/test_docstrings_class_4s_double_example_rst_empty_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_class_4s_double_example_rst_empty_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_class_4s_double_example_rst_python3_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_class_4s_double_example_rst_python3_0_._py_ new file mode 100644 index 0000000..c482657 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_class_4s_double_example_rst_python3_0_._py_ @@ -0,0 +1,147 @@ +class foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_class_4s_double_example_rst_python3_0_.yml b/tests/test_snippet_fmt_/test_docstrings_class_4s_double_example_rst_python3_0_.yml new file mode 100644 index 0000000..a099ee3 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_class_4s_double_example_rst_python3_0_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- "- \tfor item in [a,b,c] :" +- "- \t if item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-cell:: python3' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_class_4s_double_example_rst_python_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_class_4s_double_example_rst_python_0_._py_ new file mode 100644 index 0000000..b1d345e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_class_4s_double_example_rst_python_0_._py_ @@ -0,0 +1,146 @@ +class foo(): + """ + + .. code-block:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_class_4s_double_example_rst_python_0_.yml b/tests/test_snippet_fmt_/test_docstrings_class_4s_double_example_rst_python_0_.yml new file mode 100644 index 0000000..ebf5dff --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_class_4s_double_example_rst_python_0_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -3,12 +3,11 @@' +- '' +- ' .. code-block:: python' +- '' +- "- \tprint ( 'Hello World'" +- "+ \tprint(\"Hello World\")" +- '' +- "- \t)" +- '-' +- "- \tfor item in [a,b,c] :" +- "- \t\t\t\tif item: print(item)" +- "+ \tfor item in [a, b, c]:" +- "+ \t\tif item:" +- "+ \t\t\tprint(item)" +- '' +- '' +- ' .. code-block:: python3' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_class_4s_double_py_code_rst_empty_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_class_4s_double_py_code_rst_empty_0_._py_ new file mode 100644 index 0000000..8f8aa86 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_class_4s_double_py_code_rst_empty_0_._py_ @@ -0,0 +1,18 @@ +class foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_class_4s_double_py_code_rst_empty_0_.yml b/tests/test_snippet_fmt_/test_docstrings_class_4s_double_py_code_rst_empty_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_class_4s_double_py_code_rst_empty_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_class_4s_double_py_code_rst_python3_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_class_4s_double_py_code_rst_python3_0_._py_ new file mode 100644 index 0000000..b3ed4eb --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_class_4s_double_py_code_rst_python3_0_._py_ @@ -0,0 +1,18 @@ +class foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_class_4s_double_py_code_rst_python3_0_.yml b/tests/test_snippet_fmt_/test_docstrings_class_4s_double_py_code_rst_python3_0_.yml new file mode 100644 index 0000000..7f9753e --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_class_4s_double_py_code_rst_python3_0_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "- \t>>> for line in coloured_diff (" +- "+ \t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "- \t... \t\"Original\"," +- "- \t... \"Current\"," +- "+ \t... \t\t\"Original\"," +- "+ \t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "- \t... \t):" +- "- \t... \t\tprint(line)" +- "+ \t... \t\t):" +- "+ \t... \tprint(line)" +- ' """' +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_class_4s_double_py_code_rst_python_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_class_4s_double_py_code_rst_python_0_._py_ new file mode 100644 index 0000000..8f8aa86 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_class_4s_double_py_code_rst_python_0_._py_ @@ -0,0 +1,18 @@ +class foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_class_4s_double_py_code_rst_python_0_.yml b/tests/test_snippet_fmt_/test_docstrings_class_4s_double_py_code_rst_python_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_class_4s_double_py_code_rst_python_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_example_rst_empty_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_example_rst_empty_0_._py_ new file mode 100644 index 0000000..2915a91 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_example_rst_empty_0_._py_ @@ -0,0 +1,148 @@ +class foo(): + def bar(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_example_rst_empty_0_.yml b/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_example_rst_empty_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_example_rst_empty_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_example_rst_python3_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_example_rst_python3_0_._py_ new file mode 100644 index 0000000..8f673bf --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_example_rst_python3_0_._py_ @@ -0,0 +1,148 @@ +class foo(): + def bar(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_example_rst_python3_0_.yml b/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_example_rst_python3_0_.yml new file mode 100644 index 0000000..c4bbf40 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_example_rst_python3_0_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -14,18 +14,18 @@' +- '' +- " \t\t.. code-block:: python3" +- '' +- "-\t\t\tprint ( 'Hello World'" +- "+\t\t\tprint(\"Hello World\")" +- '' +- "-\t\t\t)" +- '-' +- "-\t\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\t\tif item: print(item)" +- "+\t\t\tfor item in [a, b, c]:" +- "+\t\t\t\tif item:" +- "+\t\t\t\t\tprint(item)" +- '' +- '' +- " \t\t.. code-block:: python3" +- '' +- "-\t\t\tfor item in [a,b,c] :" +- "-\t\t\t if item: print(item)" +- "+\t\t\tfor item in [a, b, c]:" +- "+\t\t\t\tif item:" +- "+\t\t\t\t\tprint(item)" +- '' +- '' +- " \t\t.. code-cell:: python3" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_example_rst_python_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_example_rst_python_0_._py_ new file mode 100644 index 0000000..68059c2 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_example_rst_python_0_._py_ @@ -0,0 +1,147 @@ +class foo(): + def bar(): + ''' + + .. code-block:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_example_rst_python_0_.yml b/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_example_rst_python_0_.yml new file mode 100644 index 0000000..732d1c5 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_example_rst_python_0_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -4,12 +4,11 @@' +- '' +- " \t\t.. code-block:: python" +- '' +- "-\t\t\tprint ( 'Hello World'" +- "+\t\t\tprint(\"Hello World\")" +- '' +- "-\t\t\t)" +- '-' +- "-\t\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\t\tif item: print(item)" +- "+\t\t\tfor item in [a, b, c]:" +- "+\t\t\t\tif item:" +- "+\t\t\t\t\tprint(item)" +- '' +- '' +- " \t\t.. code-block:: python3" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_py_code_rst_empty_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_py_code_rst_empty_0_._py_ new file mode 100644 index 0000000..5c81b66 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_py_code_rst_empty_0_._py_ @@ -0,0 +1,19 @@ +class foo(): + def bar(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_py_code_rst_empty_0_.yml b/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_py_code_rst_empty_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_py_code_rst_empty_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_py_code_rst_python3_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_py_code_rst_python3_0_._py_ new file mode 100644 index 0000000..131f083 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_py_code_rst_python3_0_._py_ @@ -0,0 +1,19 @@ +class foo(): + def bar(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_py_code_rst_python3_0_.yml b/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_py_code_rst_python3_0_.yml new file mode 100644 index 0000000..66d25a9 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_py_code_rst_python3_0_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -5,14 +5,14 @@' +- '' +- " \t\t.. code-block:: python3" +- '' +- "-\t\t\t>>> for line in coloured_diff (" +- "+\t\t\t>>> for line in coloured_diff(" +- " \t\t\t... \t\t\"one two three four\".split()," +- " \t\t\t... \t\t\"zero one tree four\".split()," +- "-\t\t\t... \t\"Original\"," +- "-\t\t\t... \"Current\"," +- "+\t\t\t... \t\t\"Original\"," +- "+\t\t\t... \t\t\"Current\"," +- " \t\t\t... \t\t\"2005-01-26 23:30:50\"," +- " \t\t\t... \t\t\"2010-04-02 10:20:52\"," +- " \t\t\t... \t\tlineterm=''," +- "-\t\t\t... \t):" +- "-\t\t\t... \t\tprint(line)" +- "+\t\t\t... \t\t):" +- "+\t\t\t... \tprint(line)" +- " \t\t'''" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_py_code_rst_python_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_py_code_rst_python_0_._py_ new file mode 100644 index 0000000..5c81b66 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_py_code_rst_python_0_._py_ @@ -0,0 +1,19 @@ +class foo(): + def bar(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_py_code_rst_python_0_.yml b/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_py_code_rst_python_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_class_method_tab_single_py_code_rst_python_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_0_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_1_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_2_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_3_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_4_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_5_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_5_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_6_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_6_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_7_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_empty_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_0_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_1_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_2_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_3_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_4_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_5_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_5_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_6_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_6_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_7_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_0_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_1_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_2_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_3_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_4_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_5_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_5_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_6_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_6_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_7_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_caps_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_0_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_1_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_2_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_3_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_4_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_5_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_5_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_6_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_6_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_7_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_ini_python_false_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_0_._py_ new file mode 100644 index 0000000..8032c0d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_0_.yml new file mode 100644 index 0000000..4dccdc6 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_0_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t if item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-cell:: python3" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_1_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_2_._py_ new file mode 100644 index 0000000..8548963 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_2_._py_ @@ -0,0 +1,146 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_2_.yml new file mode 100644 index 0000000..4e867da --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_2_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -30,12 +30,11 @@' +- " \t.. code-cell:: python3" +- " \t\t:count: 1" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code:: python" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_3_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_4_._py_ new file mode 100644 index 0000000..8032c0d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_4_.yml new file mode 100644 index 0000000..4dccdc6 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_4_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t if item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-cell:: python3" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_5_._py_ new file mode 100644 index 0000000..16883df --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_5_._py_ @@ -0,0 +1,146 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_5_.yml new file mode 100644 index 0000000..cdde79f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_5_.yml @@ -0,0 +1,48 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,29 +13,28 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t if item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-cell:: python3" +- " \t\t:count: 1" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code:: python" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_6_._py_ new file mode 100644 index 0000000..16883df --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_6_._py_ @@ -0,0 +1,146 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_6_.yml new file mode 100644 index 0000000..cdde79f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_6_.yml @@ -0,0 +1,48 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,29 +13,28 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t if item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-cell:: python3" +- " \t\t:count: 1" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code:: python" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_7_._py_ new file mode 100644 index 0000000..8032c0d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_7_.yml new file mode 100644 index 0000000..4dccdc6 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_7_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t if item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-cell:: python3" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_0_._py_ new file mode 100644 index 0000000..8032c0d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_0_.yml new file mode 100644 index 0000000..4dccdc6 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_0_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t if item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-cell:: python3" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_1_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_2_._py_ new file mode 100644 index 0000000..8548963 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_2_._py_ @@ -0,0 +1,146 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_2_.yml new file mode 100644 index 0000000..4e867da --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_2_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -30,12 +30,11 @@' +- " \t.. code-cell:: python3" +- " \t\t:count: 1" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code:: python" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_3_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_3_.yml new file mode 100644 index 0000000..303ffcc --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_3_.yml @@ -0,0 +1,5 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_4_._py_ new file mode 100644 index 0000000..8032c0d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_4_.yml new file mode 100644 index 0000000..4dccdc6 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_4_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t if item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-cell:: python3" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_5_._py_ new file mode 100644 index 0000000..16883df --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_5_._py_ @@ -0,0 +1,146 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_5_.yml new file mode 100644 index 0000000..cdde79f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_5_.yml @@ -0,0 +1,48 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,29 +13,28 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t if item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-cell:: python3" +- " \t\t:count: 1" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code:: python" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_6_._py_ new file mode 100644 index 0000000..16883df --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_6_._py_ @@ -0,0 +1,146 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_6_.yml new file mode 100644 index 0000000..cc428d0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_6_.yml @@ -0,0 +1,49 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,29 +13,28 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t if item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-cell:: python3" +- " \t\t:count: 1" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code:: python" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_7_._py_ new file mode 100644 index 0000000..8032c0d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_7_.yml new file mode 100644 index 0000000..4dccdc6 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python3_toml_false_7_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t if item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-cell:: python3" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_0_._py_ new file mode 100644 index 0000000..8d1e274 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_0_._py_ @@ -0,0 +1,146 @@ +def foo(): + """ + + .. code-block:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_0_.yml new file mode 100644 index 0000000..39a2ac2 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_0_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -3,12 +3,11 @@' +- '' +- " \t.. code-block:: python" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-block:: python3" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_1_._py_ new file mode 100644 index 0000000..af0eced --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_1_._py_ @@ -0,0 +1,146 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_1_.yml new file mode 100644 index 0000000..1fce1fb --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_1_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -40,12 +40,11 @@' +- '' +- " \t.. code:: python" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. sourcecode:: python" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_2_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_3_._py_ new file mode 100644 index 0000000..721366d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_3_._py_ @@ -0,0 +1,146 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_3_.yml new file mode 100644 index 0000000..38d301b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_3_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -50,12 +50,11 @@' +- '' +- " \t.. sourcecode:: python" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. parsed-literal:: python" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_4_._py_ new file mode 100644 index 0000000..1f59a69 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_4_._py_ @@ -0,0 +1,145 @@ +def foo(): + """ + + .. code-block:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_4_.yml new file mode 100644 index 0000000..31cc7a4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_4_.yml @@ -0,0 +1,41 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -3,12 +3,11 @@' +- '' +- " \t.. code-block:: python" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-block:: python3" +- '@@ -40,12 +39,11 @@' +- '' +- " \t.. code:: python" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. sourcecode:: python" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_5_._py_ new file mode 100644 index 0000000..1f59a69 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_5_._py_ @@ -0,0 +1,145 @@ +def foo(): + """ + + .. code-block:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_5_.yml new file mode 100644 index 0000000..31cc7a4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_5_.yml @@ -0,0 +1,41 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -3,12 +3,11 @@' +- '' +- " \t.. code-block:: python" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-block:: python3" +- '@@ -40,12 +39,11 @@' +- '' +- " \t.. code:: python" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. sourcecode:: python" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_6_._py_ new file mode 100644 index 0000000..6fe4a96 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_6_._py_ @@ -0,0 +1,144 @@ +def foo(): + """ + + .. code-block:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. sourcecode:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_6_.yml new file mode 100644 index 0000000..1b23e47 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_6_.yml @@ -0,0 +1,55 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -3,12 +3,11 @@' +- '' +- " \t.. code-block:: python" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-block:: python3" +- '@@ -40,22 +39,20 @@' +- '' +- " \t.. code:: python" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. sourcecode:: python" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. parsed-literal:: python" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_7_._py_ new file mode 100644 index 0000000..e1ce6ed --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_7_._py_ @@ -0,0 +1,144 @@ +def foo(): + """ + + .. code-block:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_7_.yml new file mode 100644 index 0000000..8a63fc7 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_python_7_.yml @@ -0,0 +1,58 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -3,12 +3,11 @@' +- '' +- " \t.. code-block:: python" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-block:: python3" +- '@@ -40,12 +39,11 @@' +- '' +- " \t.. code:: python" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. sourcecode:: python" +- '@@ -60,12 +58,11 @@' +- '' +- " \t.. parsed-literal:: python" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-block:: toml" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_0_._py_ new file mode 100644 index 0000000..50b6fb8 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_0_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_0_.yml new file mode 100644 index 0000000..b5a0d71 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_0_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- " \t.. code-block:: toml" +- '' +- " \t\t[project]" +- '-' +- '-' +- "-\t\tname = 'my-project'" +- '-' +- '-' +- "-\t\tversion=\"1.2.3\"" +- "-\t\tlicense = {file = \"LICENSE\"}" +- "+\t\tname = \"my-project\"" +- "+\t\tversion = \"1.2.3\"" +- "+\t\tlicense = { file = \"LICENSE\" }" +- '' +- '' +- " \t.. code-block:: TOML" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_1_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_2_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_3_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_3_.yml new file mode 100644 index 0000000..303ffcc --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_3_.yml @@ -0,0 +1,5 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_4_._py_ new file mode 100644 index 0000000..50b6fb8 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_4_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_4_.yml new file mode 100644 index 0000000..b5a0d71 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_4_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- " \t.. code-block:: toml" +- '' +- " \t\t[project]" +- '-' +- '-' +- "-\t\tname = 'my-project'" +- '-' +- '-' +- "-\t\tversion=\"1.2.3\"" +- "-\t\tlicense = {file = \"LICENSE\"}" +- "+\t\tname = \"my-project\"" +- "+\t\tversion = \"1.2.3\"" +- "+\t\tlicense = { file = \"LICENSE\" }" +- '' +- '' +- " \t.. code-block:: TOML" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_5_._py_ new file mode 100644 index 0000000..50b6fb8 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_5_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_5_.yml new file mode 100644 index 0000000..b5a0d71 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_5_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- " \t.. code-block:: toml" +- '' +- " \t\t[project]" +- '-' +- '-' +- "-\t\tname = 'my-project'" +- '-' +- '-' +- "-\t\tversion=\"1.2.3\"" +- "-\t\tlicense = {file = \"LICENSE\"}" +- "+\t\tname = \"my-project\"" +- "+\t\tversion = \"1.2.3\"" +- "+\t\tlicense = { file = \"LICENSE\" }" +- '' +- '' +- " \t.. code-block:: TOML" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_6_._py_ new file mode 100644 index 0000000..50b6fb8 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_6_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_6_.yml new file mode 100644 index 0000000..b66c067 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_6_.yml @@ -0,0 +1,25 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- " \t.. code-block:: toml" +- '' +- " \t\t[project]" +- '-' +- '-' +- "-\t\tname = 'my-project'" +- '-' +- '-' +- "-\t\tversion=\"1.2.3\"" +- "-\t\tlicense = {file = \"LICENSE\"}" +- "+\t\tname = \"my-project\"" +- "+\t\tversion = \"1.2.3\"" +- "+\t\tlicense = { file = \"LICENSE\" }" +- '' +- '' +- " \t.. code-block:: TOML" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_7_._py_ new file mode 100644 index 0000000..50b6fb8 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_7_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_7_.yml new file mode 100644 index 0000000..b5a0d71 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_7_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- " \t.. code-block:: toml" +- '' +- " \t\t[project]" +- '-' +- '-' +- "-\t\tname = 'my-project'" +- '-' +- '-' +- "-\t\tversion=\"1.2.3\"" +- "-\t\tlicense = {file = \"LICENSE\"}" +- "+\t\tname = \"my-project\"" +- "+\t\tversion = \"1.2.3\"" +- "+\t\tlicense = { file = \"LICENSE\" }" +- '' +- '' +- " \t.. code-block:: TOML" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_0_._py_ new file mode 100644 index 0000000..580ede7 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_0_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_0_.yml new file mode 100644 index 0000000..9959157 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_0_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -83,13 +83,9 @@' +- " \t.. code-block:: TOML" +- '' +- " \t\t[project]" +- '-' +- '-' +- "-\t\tname = 'my-project'" +- '-' +- '-' +- "-\t\tversion=\"1.2.3\"" +- "-\t\tlicense = {file = \"LICENSE\"}" +- "+\t\tname = \"my-project\"" +- "+\t\tversion = \"1.2.3\"" +- "+\t\tlicense = { file = \"LICENSE\" }" +- '' +- '' +- " \t.. code:: TOML" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_1_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_1_.yml new file mode 100644 index 0000000..e392663 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_1_.yml @@ -0,0 +1,6 @@ +err: +- '.../example.py:95: TOMLDecodeError: Invalid initial character for a key part (at + line 8, column 12)' +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_2_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_3_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_4_._py_ new file mode 100644 index 0000000..580ede7 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_4_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_4_.yml new file mode 100644 index 0000000..b72a29f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_4_.yml @@ -0,0 +1,26 @@ +err: +- '.../example.py:95: TOMLDecodeError: Invalid initial character for a key part (at + line 8, column 12)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -83,13 +83,9 @@' +- " \t.. code-block:: TOML" +- '' +- " \t\t[project]" +- '-' +- '-' +- "-\t\tname = 'my-project'" +- '-' +- '-' +- "-\t\tversion=\"1.2.3\"" +- "-\t\tlicense = {file = \"LICENSE\"}" +- "+\t\tname = \"my-project\"" +- "+\t\tversion = \"1.2.3\"" +- "+\t\tlicense = { file = \"LICENSE\" }" +- '' +- '' +- " \t.. code:: TOML" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_5_._py_ new file mode 100644 index 0000000..580ede7 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_5_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_5_.yml new file mode 100644 index 0000000..b72a29f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_5_.yml @@ -0,0 +1,26 @@ +err: +- '.../example.py:95: TOMLDecodeError: Invalid initial character for a key part (at + line 8, column 12)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -83,13 +83,9 @@' +- " \t.. code-block:: TOML" +- '' +- " \t\t[project]" +- '-' +- '-' +- "-\t\tname = 'my-project'" +- '-' +- '-' +- "-\t\tversion=\"1.2.3\"" +- "-\t\tlicense = {file = \"LICENSE\"}" +- "+\t\tname = \"my-project\"" +- "+\t\tversion = \"1.2.3\"" +- "+\t\tlicense = { file = \"LICENSE\" }" +- '' +- '' +- " \t.. code:: TOML" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_6_._py_ new file mode 100644 index 0000000..580ede7 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_6_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_6_.yml new file mode 100644 index 0000000..b72a29f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_6_.yml @@ -0,0 +1,26 @@ +err: +- '.../example.py:95: TOMLDecodeError: Invalid initial character for a key part (at + line 8, column 12)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -83,13 +83,9 @@' +- " \t.. code-block:: TOML" +- '' +- " \t\t[project]" +- '-' +- '-' +- "-\t\tname = 'my-project'" +- '-' +- '-' +- "-\t\tversion=\"1.2.3\"" +- "-\t\tlicense = {file = \"LICENSE\"}" +- "+\t\tname = \"my-project\"" +- "+\t\tversion = \"1.2.3\"" +- "+\t\tlicense = { file = \"LICENSE\" }" +- '' +- '' +- " \t.. code:: TOML" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_7_._py_ new file mode 100644 index 0000000..580ede7 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_7_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_7_.yml new file mode 100644 index 0000000..b72a29f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_caps_7_.yml @@ -0,0 +1,26 @@ +err: +- '.../example.py:95: TOMLDecodeError: Invalid initial character for a key part (at + line 8, column 12)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -83,13 +83,9 @@' +- " \t.. code-block:: TOML" +- '' +- " \t\t[project]" +- '-' +- '-' +- "-\t\tname = 'my-project'" +- '-' +- '-' +- "-\t\tversion=\"1.2.3\"" +- "-\t\tlicense = {file = \"LICENSE\"}" +- "+\t\tname = \"my-project\"" +- "+\t\tversion = \"1.2.3\"" +- "+\t\tlicense = { file = \"LICENSE\" }" +- '' +- '' +- " \t.. code:: TOML" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_0_._py_ new file mode 100644 index 0000000..50b6fb8 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_0_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_0_.yml new file mode 100644 index 0000000..b5a0d71 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_0_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- " \t.. code-block:: toml" +- '' +- " \t\t[project]" +- '-' +- '-' +- "-\t\tname = 'my-project'" +- '-' +- '-' +- "-\t\tversion=\"1.2.3\"" +- "-\t\tlicense = {file = \"LICENSE\"}" +- "+\t\tname = \"my-project\"" +- "+\t\tversion = \"1.2.3\"" +- "+\t\tlicense = { file = \"LICENSE\" }" +- '' +- '' +- " \t.. code-block:: TOML" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_1_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_2_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_3_._py_ new file mode 100644 index 0000000..ac97d6f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_3_.yml new file mode 100644 index 0000000..303ffcc --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_3_.yml @@ -0,0 +1,5 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_4_._py_ new file mode 100644 index 0000000..50b6fb8 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_4_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_4_.yml new file mode 100644 index 0000000..b5a0d71 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_4_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- " \t.. code-block:: toml" +- '' +- " \t\t[project]" +- '-' +- '-' +- "-\t\tname = 'my-project'" +- '-' +- '-' +- "-\t\tversion=\"1.2.3\"" +- "-\t\tlicense = {file = \"LICENSE\"}" +- "+\t\tname = \"my-project\"" +- "+\t\tversion = \"1.2.3\"" +- "+\t\tlicense = { file = \"LICENSE\" }" +- '' +- '' +- " \t.. code-block:: TOML" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_5_._py_ new file mode 100644 index 0000000..50b6fb8 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_5_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_5_.yml new file mode 100644 index 0000000..b5a0d71 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_5_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- " \t.. code-block:: toml" +- '' +- " \t\t[project]" +- '-' +- '-' +- "-\t\tname = 'my-project'" +- '-' +- '-' +- "-\t\tversion=\"1.2.3\"" +- "-\t\tlicense = {file = \"LICENSE\"}" +- "+\t\tname = \"my-project\"" +- "+\t\tversion = \"1.2.3\"" +- "+\t\tlicense = { file = \"LICENSE\" }" +- '' +- '' +- " \t.. code-block:: TOML" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_6_._py_ new file mode 100644 index 0000000..50b6fb8 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_6_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_6_.yml new file mode 100644 index 0000000..b66c067 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_6_.yml @@ -0,0 +1,25 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- " \t.. code-block:: toml" +- '' +- " \t\t[project]" +- '-' +- '-' +- "-\t\tname = 'my-project'" +- '-' +- '-' +- "-\t\tversion=\"1.2.3\"" +- "-\t\tlicense = {file = \"LICENSE\"}" +- "+\t\tname = \"my-project\"" +- "+\t\tversion = \"1.2.3\"" +- "+\t\tlicense = { file = \"LICENSE\" }" +- '' +- '' +- " \t.. code-block:: TOML" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_7_._py_ new file mode 100644 index 0000000..50b6fb8 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_7_._py_ @@ -0,0 +1,143 @@ +def foo(): + """ + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_7_.yml new file mode 100644 index 0000000..b5a0d71 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_example_rst_toml_python_false_7_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- " \t.. code-block:: toml" +- '' +- " \t\t[project]" +- '-' +- '-' +- "-\t\tname = 'my-project'" +- '-' +- '-' +- "-\t\tversion=\"1.2.3\"" +- "-\t\tlicense = {file = \"LICENSE\"}" +- "+\t\tname = \"my-project\"" +- "+\t\tversion = \"1.2.3\"" +- "+\t\tlicense = { file = \"LICENSE\" }" +- '' +- '' +- " \t.. code-block:: TOML" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_0_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_1_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_2_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_3_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_4_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_5_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_6_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_7_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_empty_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_0_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_1_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_2_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_3_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_4_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_5_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_6_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_7_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_0_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_1_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_2_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_3_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_4_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_5_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_6_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_7_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_caps_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_0_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_1_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_2_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_3_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_4_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_5_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_6_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_7_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_ini_python_false_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_0_._py_ new file mode 100644 index 0000000..7a9e9be --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_0_.yml new file mode 100644 index 0000000..bdc5a30 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_0_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\t>>> for line in coloured_diff (" +- "+\t\t>>> for line in coloured_diff(" +- " \t\t... \t\t\"one two three four\".split()," +- " \t\t... \t\t\"zero one tree four\".split()," +- "-\t\t... \t\"Original\"," +- "-\t\t... \"Current\"," +- "+\t\t... \t\t\"Original\"," +- "+\t\t... \t\t\"Current\"," +- " \t\t... \t\t\"2005-01-26 23:30:50\"," +- " \t\t... \t\t\"2010-04-02 10:20:52\"," +- " \t\t... \t\tlineterm=''," +- "-\t\t... \t):" +- "-\t\t... \t\tprint(line)" +- "+\t\t... \t\t):" +- "+\t\t... \tprint(line)" +- " \t\"\"\"" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_1_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_2_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_3_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_4_._py_ new file mode 100644 index 0000000..7a9e9be --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_4_.yml new file mode 100644 index 0000000..bdc5a30 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_4_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\t>>> for line in coloured_diff (" +- "+\t\t>>> for line in coloured_diff(" +- " \t\t... \t\t\"one two three four\".split()," +- " \t\t... \t\t\"zero one tree four\".split()," +- "-\t\t... \t\"Original\"," +- "-\t\t... \"Current\"," +- "+\t\t... \t\t\"Original\"," +- "+\t\t... \t\t\"Current\"," +- " \t\t... \t\t\"2005-01-26 23:30:50\"," +- " \t\t... \t\t\"2010-04-02 10:20:52\"," +- " \t\t... \t\tlineterm=''," +- "-\t\t... \t):" +- "-\t\t... \t\tprint(line)" +- "+\t\t... \t\t):" +- "+\t\t... \tprint(line)" +- " \t\"\"\"" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_5_._py_ new file mode 100644 index 0000000..7a9e9be --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_5_.yml new file mode 100644 index 0000000..bdc5a30 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_5_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\t>>> for line in coloured_diff (" +- "+\t\t>>> for line in coloured_diff(" +- " \t\t... \t\t\"one two three four\".split()," +- " \t\t... \t\t\"zero one tree four\".split()," +- "-\t\t... \t\"Original\"," +- "-\t\t... \"Current\"," +- "+\t\t... \t\t\"Original\"," +- "+\t\t... \t\t\"Current\"," +- " \t\t... \t\t\"2005-01-26 23:30:50\"," +- " \t\t... \t\t\"2010-04-02 10:20:52\"," +- " \t\t... \t\tlineterm=''," +- "-\t\t... \t):" +- "-\t\t... \t\tprint(line)" +- "+\t\t... \t\t):" +- "+\t\t... \tprint(line)" +- " \t\"\"\"" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_6_._py_ new file mode 100644 index 0000000..7a9e9be --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_6_.yml new file mode 100644 index 0000000..bdc5a30 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_6_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\t>>> for line in coloured_diff (" +- "+\t\t>>> for line in coloured_diff(" +- " \t\t... \t\t\"one two three four\".split()," +- " \t\t... \t\t\"zero one tree four\".split()," +- "-\t\t... \t\"Original\"," +- "-\t\t... \"Current\"," +- "+\t\t... \t\t\"Original\"," +- "+\t\t... \t\t\"Current\"," +- " \t\t... \t\t\"2005-01-26 23:30:50\"," +- " \t\t... \t\t\"2010-04-02 10:20:52\"," +- " \t\t... \t\tlineterm=''," +- "-\t\t... \t):" +- "-\t\t... \t\tprint(line)" +- "+\t\t... \t\t):" +- "+\t\t... \tprint(line)" +- " \t\"\"\"" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_7_._py_ new file mode 100644 index 0000000..7a9e9be --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_7_.yml new file mode 100644 index 0000000..bdc5a30 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_7_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\t>>> for line in coloured_diff (" +- "+\t\t>>> for line in coloured_diff(" +- " \t\t... \t\t\"one two three four\".split()," +- " \t\t... \t\t\"zero one tree four\".split()," +- "-\t\t... \t\"Original\"," +- "-\t\t... \"Current\"," +- "+\t\t... \t\t\"Original\"," +- "+\t\t... \t\t\"Current\"," +- " \t\t... \t\t\"2005-01-26 23:30:50\"," +- " \t\t... \t\t\"2010-04-02 10:20:52\"," +- " \t\t... \t\tlineterm=''," +- "-\t\t... \t):" +- "-\t\t... \t\tprint(line)" +- "+\t\t... \t\t):" +- "+\t\t... \tprint(line)" +- " \t\"\"\"" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_0_._py_ new file mode 100644 index 0000000..7a9e9be --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_0_.yml new file mode 100644 index 0000000..bdc5a30 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_0_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\t>>> for line in coloured_diff (" +- "+\t\t>>> for line in coloured_diff(" +- " \t\t... \t\t\"one two three four\".split()," +- " \t\t... \t\t\"zero one tree four\".split()," +- "-\t\t... \t\"Original\"," +- "-\t\t... \"Current\"," +- "+\t\t... \t\t\"Original\"," +- "+\t\t... \t\t\"Current\"," +- " \t\t... \t\t\"2005-01-26 23:30:50\"," +- " \t\t... \t\t\"2010-04-02 10:20:52\"," +- " \t\t... \t\tlineterm=''," +- "-\t\t... \t):" +- "-\t\t... \t\tprint(line)" +- "+\t\t... \t\t):" +- "+\t\t... \tprint(line)" +- " \t\"\"\"" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_1_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_2_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_3_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_4_._py_ new file mode 100644 index 0000000..7a9e9be --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_4_.yml new file mode 100644 index 0000000..bdc5a30 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_4_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\t>>> for line in coloured_diff (" +- "+\t\t>>> for line in coloured_diff(" +- " \t\t... \t\t\"one two three four\".split()," +- " \t\t... \t\t\"zero one tree four\".split()," +- "-\t\t... \t\"Original\"," +- "-\t\t... \"Current\"," +- "+\t\t... \t\t\"Original\"," +- "+\t\t... \t\t\"Current\"," +- " \t\t... \t\t\"2005-01-26 23:30:50\"," +- " \t\t... \t\t\"2010-04-02 10:20:52\"," +- " \t\t... \t\tlineterm=''," +- "-\t\t... \t):" +- "-\t\t... \t\tprint(line)" +- "+\t\t... \t\t):" +- "+\t\t... \tprint(line)" +- " \t\"\"\"" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_5_._py_ new file mode 100644 index 0000000..7a9e9be --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_5_.yml new file mode 100644 index 0000000..bdc5a30 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_5_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\t>>> for line in coloured_diff (" +- "+\t\t>>> for line in coloured_diff(" +- " \t\t... \t\t\"one two three four\".split()," +- " \t\t... \t\t\"zero one tree four\".split()," +- "-\t\t... \t\"Original\"," +- "-\t\t... \"Current\"," +- "+\t\t... \t\t\"Original\"," +- "+\t\t... \t\t\"Current\"," +- " \t\t... \t\t\"2005-01-26 23:30:50\"," +- " \t\t... \t\t\"2010-04-02 10:20:52\"," +- " \t\t... \t\tlineterm=''," +- "-\t\t... \t):" +- "-\t\t... \t\tprint(line)" +- "+\t\t... \t\t):" +- "+\t\t... \tprint(line)" +- " \t\"\"\"" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_6_._py_ new file mode 100644 index 0000000..7a9e9be --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_6_.yml new file mode 100644 index 0000000..bdc5a30 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_6_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\t>>> for line in coloured_diff (" +- "+\t\t>>> for line in coloured_diff(" +- " \t\t... \t\t\"one two three four\".split()," +- " \t\t... \t\t\"zero one tree four\".split()," +- "-\t\t... \t\"Original\"," +- "-\t\t... \"Current\"," +- "+\t\t... \t\t\"Original\"," +- "+\t\t... \t\t\"Current\"," +- " \t\t... \t\t\"2005-01-26 23:30:50\"," +- " \t\t... \t\t\"2010-04-02 10:20:52\"," +- " \t\t... \t\tlineterm=''," +- "-\t\t... \t):" +- "-\t\t... \t\tprint(line)" +- "+\t\t... \t\t):" +- "+\t\t... \tprint(line)" +- " \t\"\"\"" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_7_._py_ new file mode 100644 index 0000000..7a9e9be --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_7_.yml new file mode 100644 index 0000000..bdc5a30 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python3_toml_false_7_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\t>>> for line in coloured_diff (" +- "+\t\t>>> for line in coloured_diff(" +- " \t\t... \t\t\"one two three four\".split()," +- " \t\t... \t\t\"zero one tree four\".split()," +- "-\t\t... \t\"Original\"," +- "-\t\t... \"Current\"," +- "+\t\t... \t\t\"Original\"," +- "+\t\t... \t\t\"Current\"," +- " \t\t... \t\t\"2005-01-26 23:30:50\"," +- " \t\t... \t\t\"2010-04-02 10:20:52\"," +- " \t\t... \t\tlineterm=''," +- "-\t\t... \t):" +- "-\t\t... \t\tprint(line)" +- "+\t\t... \t\t):" +- "+\t\t... \tprint(line)" +- " \t\"\"\"" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_0_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_1_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_2_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_3_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_4_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_5_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_6_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_7_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_python_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_0_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_1_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_2_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_3_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_4_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_5_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_6_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_7_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_0_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_1_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_2_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_3_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_4_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_5_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_6_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_7_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_caps_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_0_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_1_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_2_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_3_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_4_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_5_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_6_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_7_._py_ new file mode 100644 index 0000000..c10177b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + """ + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + """ + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_double_py_code_rst_toml_python_false_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_0_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_1_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_2_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_3_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_4_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_5_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_5_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_6_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_6_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_7_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_empty_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_0_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_1_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_2_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_3_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_4_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_5_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_5_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_6_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_6_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_7_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_0_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_1_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_2_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_3_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_4_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_5_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_5_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_6_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_6_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_7_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_caps_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_0_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_1_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_2_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_3_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_4_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_5_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_5_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_6_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_6_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_7_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_ini_python_false_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_0_._py_ new file mode 100644 index 0000000..c96a6ef --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_0_.yml new file mode 100644 index 0000000..4dccdc6 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_0_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t if item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-cell:: python3" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_1_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_2_._py_ new file mode 100644 index 0000000..31a1334 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_2_._py_ @@ -0,0 +1,146 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_2_.yml new file mode 100644 index 0000000..4e867da --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_2_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -30,12 +30,11 @@' +- " \t.. code-cell:: python3" +- " \t\t:count: 1" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code:: python" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_3_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_4_._py_ new file mode 100644 index 0000000..c96a6ef --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_4_.yml new file mode 100644 index 0000000..4dccdc6 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_4_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t if item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-cell:: python3" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_5_._py_ new file mode 100644 index 0000000..d427a0a --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_5_._py_ @@ -0,0 +1,146 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_5_.yml new file mode 100644 index 0000000..cdde79f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_5_.yml @@ -0,0 +1,48 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,29 +13,28 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t if item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-cell:: python3" +- " \t\t:count: 1" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code:: python" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_6_._py_ new file mode 100644 index 0000000..d427a0a --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_6_._py_ @@ -0,0 +1,146 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_6_.yml new file mode 100644 index 0000000..cdde79f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_6_.yml @@ -0,0 +1,48 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,29 +13,28 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t if item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-cell:: python3" +- " \t\t:count: 1" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code:: python" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_7_._py_ new file mode 100644 index 0000000..c96a6ef --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_7_.yml new file mode 100644 index 0000000..4dccdc6 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_7_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t if item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-cell:: python3" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_0_._py_ new file mode 100644 index 0000000..c96a6ef --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_0_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_0_.yml new file mode 100644 index 0000000..4dccdc6 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_0_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t if item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-cell:: python3" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_1_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_2_._py_ new file mode 100644 index 0000000..31a1334 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_2_._py_ @@ -0,0 +1,146 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_2_.yml new file mode 100644 index 0000000..4e867da --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_2_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -30,12 +30,11 @@' +- " \t.. code-cell:: python3" +- " \t\t:count: 1" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code:: python" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_3_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_3_.yml new file mode 100644 index 0000000..303ffcc --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_3_.yml @@ -0,0 +1,5 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_4_._py_ new file mode 100644 index 0000000..c96a6ef --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_4_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_4_.yml new file mode 100644 index 0000000..4dccdc6 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_4_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t if item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-cell:: python3" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_5_._py_ new file mode 100644 index 0000000..d427a0a --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_5_._py_ @@ -0,0 +1,146 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_5_.yml new file mode 100644 index 0000000..cdde79f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_5_.yml @@ -0,0 +1,48 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,29 +13,28 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t if item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-cell:: python3" +- " \t\t:count: 1" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code:: python" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_6_._py_ new file mode 100644 index 0000000..d427a0a --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_6_._py_ @@ -0,0 +1,146 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_6_.yml new file mode 100644 index 0000000..cc428d0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_6_.yml @@ -0,0 +1,49 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,29 +13,28 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t if item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-cell:: python3" +- " \t\t:count: 1" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code:: python" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_7_._py_ new file mode 100644 index 0000000..c96a6ef --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_7_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + for item in [a, b, c]: + if item: + print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_7_.yml new file mode 100644 index 0000000..4dccdc6 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python3_toml_false_7_.yml @@ -0,0 +1,33 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -13,18 +13,18 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t if item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-cell:: python3" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_0_._py_ new file mode 100644 index 0000000..041a6bb --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_0_._py_ @@ -0,0 +1,146 @@ +def foo(): + ''' + + .. code-block:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_0_.yml new file mode 100644 index 0000000..39a2ac2 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_0_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -3,12 +3,11 @@' +- '' +- " \t.. code-block:: python" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-block:: python3" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_1_._py_ new file mode 100644 index 0000000..9f89724 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_1_._py_ @@ -0,0 +1,146 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_1_.yml new file mode 100644 index 0000000..1fce1fb --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_1_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -40,12 +40,11 @@' +- '' +- " \t.. code:: python" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. sourcecode:: python" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_2_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_3_._py_ new file mode 100644 index 0000000..8e05eec --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_3_._py_ @@ -0,0 +1,146 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_3_.yml new file mode 100644 index 0000000..38d301b --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_3_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -50,12 +50,11 @@' +- '' +- " \t.. sourcecode:: python" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. parsed-literal:: python" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_4_._py_ new file mode 100644 index 0000000..e5325f8 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_4_._py_ @@ -0,0 +1,145 @@ +def foo(): + ''' + + .. code-block:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_4_.yml new file mode 100644 index 0000000..31cc7a4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_4_.yml @@ -0,0 +1,41 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -3,12 +3,11 @@' +- '' +- " \t.. code-block:: python" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-block:: python3" +- '@@ -40,12 +39,11 @@' +- '' +- " \t.. code:: python" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. sourcecode:: python" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_5_._py_ new file mode 100644 index 0000000..e5325f8 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_5_._py_ @@ -0,0 +1,145 @@ +def foo(): + ''' + + .. code-block:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_5_.yml new file mode 100644 index 0000000..31cc7a4 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_5_.yml @@ -0,0 +1,41 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -3,12 +3,11 @@' +- '' +- " \t.. code-block:: python" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-block:: python3" +- '@@ -40,12 +39,11 @@' +- '' +- " \t.. code:: python" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. sourcecode:: python" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_6_._py_ new file mode 100644 index 0000000..f45c344 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_6_._py_ @@ -0,0 +1,144 @@ +def foo(): + ''' + + .. code-block:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. sourcecode:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_6_.yml new file mode 100644 index 0000000..1b23e47 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_6_.yml @@ -0,0 +1,55 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -3,12 +3,11 @@' +- '' +- " \t.. code-block:: python" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-block:: python3" +- '@@ -40,22 +39,20 @@' +- '' +- " \t.. code:: python" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. sourcecode:: python" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. parsed-literal:: python" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_7_._py_ new file mode 100644 index 0000000..fd58b10 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_7_._py_ @@ -0,0 +1,144 @@ +def foo(): + ''' + + .. code-block:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print("Hello World") + + for item in [a, b, c]: + if item: + print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_7_.yml new file mode 100644 index 0000000..8a63fc7 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_python_7_.yml @@ -0,0 +1,58 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -3,12 +3,11 @@' +- '' +- " \t.. code-block:: python" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-block:: python3" +- '@@ -40,12 +39,11 @@' +- '' +- " \t.. code:: python" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. sourcecode:: python" +- '@@ -60,12 +58,11 @@' +- '' +- " \t.. parsed-literal:: python" +- '' +- "-\t\tprint ( 'Hello World'" +- "+\t\tprint(\"Hello World\")" +- '' +- "-\t\t)" +- '-' +- "-\t\tfor item in [a,b,c] :" +- "-\t\t\t\t\tif item: print(item)" +- "+\t\tfor item in [a, b, c]:" +- "+\t\t\tif item:" +- "+\t\t\t\tprint(item)" +- '' +- '' +- " \t.. code-block:: toml" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_0_._py_ new file mode 100644 index 0000000..78b5fa6 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_0_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_0_.yml new file mode 100644 index 0000000..b5a0d71 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_0_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- " \t.. code-block:: toml" +- '' +- " \t\t[project]" +- '-' +- '-' +- "-\t\tname = 'my-project'" +- '-' +- '-' +- "-\t\tversion=\"1.2.3\"" +- "-\t\tlicense = {file = \"LICENSE\"}" +- "+\t\tname = \"my-project\"" +- "+\t\tversion = \"1.2.3\"" +- "+\t\tlicense = { file = \"LICENSE\" }" +- '' +- '' +- " \t.. code-block:: TOML" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_1_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_2_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_3_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_3_.yml new file mode 100644 index 0000000..303ffcc --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_3_.yml @@ -0,0 +1,5 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_4_._py_ new file mode 100644 index 0000000..78b5fa6 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_4_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_4_.yml new file mode 100644 index 0000000..b5a0d71 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_4_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- " \t.. code-block:: toml" +- '' +- " \t\t[project]" +- '-' +- '-' +- "-\t\tname = 'my-project'" +- '-' +- '-' +- "-\t\tversion=\"1.2.3\"" +- "-\t\tlicense = {file = \"LICENSE\"}" +- "+\t\tname = \"my-project\"" +- "+\t\tversion = \"1.2.3\"" +- "+\t\tlicense = { file = \"LICENSE\" }" +- '' +- '' +- " \t.. code-block:: TOML" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_5_._py_ new file mode 100644 index 0000000..78b5fa6 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_5_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_5_.yml new file mode 100644 index 0000000..b5a0d71 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_5_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- " \t.. code-block:: toml" +- '' +- " \t\t[project]" +- '-' +- '-' +- "-\t\tname = 'my-project'" +- '-' +- '-' +- "-\t\tversion=\"1.2.3\"" +- "-\t\tlicense = {file = \"LICENSE\"}" +- "+\t\tname = \"my-project\"" +- "+\t\tversion = \"1.2.3\"" +- "+\t\tlicense = { file = \"LICENSE\" }" +- '' +- '' +- " \t.. code-block:: TOML" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_6_._py_ new file mode 100644 index 0000000..78b5fa6 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_6_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_6_.yml new file mode 100644 index 0000000..b66c067 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_6_.yml @@ -0,0 +1,25 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- " \t.. code-block:: toml" +- '' +- " \t\t[project]" +- '-' +- '-' +- "-\t\tname = 'my-project'" +- '-' +- '-' +- "-\t\tversion=\"1.2.3\"" +- "-\t\tlicense = {file = \"LICENSE\"}" +- "+\t\tname = \"my-project\"" +- "+\t\tversion = \"1.2.3\"" +- "+\t\tlicense = { file = \"LICENSE\" }" +- '' +- '' +- " \t.. code-block:: TOML" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_7_._py_ new file mode 100644 index 0000000..78b5fa6 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_7_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_7_.yml new file mode 100644 index 0000000..b5a0d71 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_7_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- " \t.. code-block:: toml" +- '' +- " \t\t[project]" +- '-' +- '-' +- "-\t\tname = 'my-project'" +- '-' +- '-' +- "-\t\tversion=\"1.2.3\"" +- "-\t\tlicense = {file = \"LICENSE\"}" +- "+\t\tname = \"my-project\"" +- "+\t\tversion = \"1.2.3\"" +- "+\t\tlicense = { file = \"LICENSE\" }" +- '' +- '' +- " \t.. code-block:: TOML" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_0_._py_ new file mode 100644 index 0000000..0627af6 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_0_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_0_.yml new file mode 100644 index 0000000..9959157 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_0_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -83,13 +83,9 @@' +- " \t.. code-block:: TOML" +- '' +- " \t\t[project]" +- '-' +- '-' +- "-\t\tname = 'my-project'" +- '-' +- '-' +- "-\t\tversion=\"1.2.3\"" +- "-\t\tlicense = {file = \"LICENSE\"}" +- "+\t\tname = \"my-project\"" +- "+\t\tversion = \"1.2.3\"" +- "+\t\tlicense = { file = \"LICENSE\" }" +- '' +- '' +- " \t.. code:: TOML" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_1_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_1_.yml new file mode 100644 index 0000000..e392663 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_1_.yml @@ -0,0 +1,6 @@ +err: +- '.../example.py:95: TOMLDecodeError: Invalid initial character for a key part (at + line 8, column 12)' +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_2_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_3_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_4_._py_ new file mode 100644 index 0000000..0627af6 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_4_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_4_.yml new file mode 100644 index 0000000..b72a29f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_4_.yml @@ -0,0 +1,26 @@ +err: +- '.../example.py:95: TOMLDecodeError: Invalid initial character for a key part (at + line 8, column 12)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -83,13 +83,9 @@' +- " \t.. code-block:: TOML" +- '' +- " \t\t[project]" +- '-' +- '-' +- "-\t\tname = 'my-project'" +- '-' +- '-' +- "-\t\tversion=\"1.2.3\"" +- "-\t\tlicense = {file = \"LICENSE\"}" +- "+\t\tname = \"my-project\"" +- "+\t\tversion = \"1.2.3\"" +- "+\t\tlicense = { file = \"LICENSE\" }" +- '' +- '' +- " \t.. code:: TOML" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_5_._py_ new file mode 100644 index 0000000..0627af6 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_5_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_5_.yml new file mode 100644 index 0000000..b72a29f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_5_.yml @@ -0,0 +1,26 @@ +err: +- '.../example.py:95: TOMLDecodeError: Invalid initial character for a key part (at + line 8, column 12)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -83,13 +83,9 @@' +- " \t.. code-block:: TOML" +- '' +- " \t\t[project]" +- '-' +- '-' +- "-\t\tname = 'my-project'" +- '-' +- '-' +- "-\t\tversion=\"1.2.3\"" +- "-\t\tlicense = {file = \"LICENSE\"}" +- "+\t\tname = \"my-project\"" +- "+\t\tversion = \"1.2.3\"" +- "+\t\tlicense = { file = \"LICENSE\" }" +- '' +- '' +- " \t.. code:: TOML" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_6_._py_ new file mode 100644 index 0000000..0627af6 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_6_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_6_.yml new file mode 100644 index 0000000..b72a29f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_6_.yml @@ -0,0 +1,26 @@ +err: +- '.../example.py:95: TOMLDecodeError: Invalid initial character for a key part (at + line 8, column 12)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -83,13 +83,9 @@' +- " \t.. code-block:: TOML" +- '' +- " \t\t[project]" +- '-' +- '-' +- "-\t\tname = 'my-project'" +- '-' +- '-' +- "-\t\tversion=\"1.2.3\"" +- "-\t\tlicense = {file = \"LICENSE\"}" +- "+\t\tname = \"my-project\"" +- "+\t\tversion = \"1.2.3\"" +- "+\t\tlicense = { file = \"LICENSE\" }" +- '' +- '' +- " \t.. code:: TOML" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_7_._py_ new file mode 100644 index 0000000..0627af6 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_7_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_7_.yml new file mode 100644 index 0000000..b72a29f --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_caps_7_.yml @@ -0,0 +1,26 @@ +err: +- '.../example.py:95: TOMLDecodeError: Invalid initial character for a key part (at + line 8, column 12)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -83,13 +83,9 @@' +- " \t.. code-block:: TOML" +- '' +- " \t\t[project]" +- '-' +- '-' +- "-\t\tname = 'my-project'" +- '-' +- '-' +- "-\t\tversion=\"1.2.3\"" +- "-\t\tlicense = {file = \"LICENSE\"}" +- "+\t\tname = \"my-project\"" +- "+\t\tversion = \"1.2.3\"" +- "+\t\tlicense = { file = \"LICENSE\" }" +- '' +- '' +- " \t.. code:: TOML" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_0_._py_ new file mode 100644 index 0000000..78b5fa6 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_0_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_0_.yml new file mode 100644 index 0000000..b5a0d71 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_0_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- " \t.. code-block:: toml" +- '' +- " \t\t[project]" +- '-' +- '-' +- "-\t\tname = 'my-project'" +- '-' +- '-' +- "-\t\tversion=\"1.2.3\"" +- "-\t\tlicense = {file = \"LICENSE\"}" +- "+\t\tname = \"my-project\"" +- "+\t\tversion = \"1.2.3\"" +- "+\t\tlicense = { file = \"LICENSE\" }" +- '' +- '' +- " \t.. code-block:: TOML" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_1_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_1_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_2_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_2_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_3_._py_ new file mode 100644 index 0000000..64d479d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_3_._py_ @@ -0,0 +1,147 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_3_.yml new file mode 100644 index 0000000..303ffcc --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_3_.yml @@ -0,0 +1,5 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_4_._py_ new file mode 100644 index 0000000..78b5fa6 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_4_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_4_.yml new file mode 100644 index 0000000..b5a0d71 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_4_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- " \t.. code-block:: toml" +- '' +- " \t\t[project]" +- '-' +- '-' +- "-\t\tname = 'my-project'" +- '-' +- '-' +- "-\t\tversion=\"1.2.3\"" +- "-\t\tlicense = {file = \"LICENSE\"}" +- "+\t\tname = \"my-project\"" +- "+\t\tversion = \"1.2.3\"" +- "+\t\tlicense = { file = \"LICENSE\" }" +- '' +- '' +- " \t.. code-block:: TOML" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_5_._py_ new file mode 100644 index 0000000..78b5fa6 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_5_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_5_.yml new file mode 100644 index 0000000..b5a0d71 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_5_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- " \t.. code-block:: toml" +- '' +- " \t\t[project]" +- '-' +- '-' +- "-\t\tname = 'my-project'" +- '-' +- '-' +- "-\t\tversion=\"1.2.3\"" +- "-\t\tlicense = {file = \"LICENSE\"}" +- "+\t\tname = \"my-project\"" +- "+\t\tversion = \"1.2.3\"" +- "+\t\tlicense = { file = \"LICENSE\" }" +- '' +- '' +- " \t.. code-block:: TOML" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_6_._py_ new file mode 100644 index 0000000..78b5fa6 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_6_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_6_.yml new file mode 100644 index 0000000..b66c067 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_6_.yml @@ -0,0 +1,25 @@ +err: +- '.../example.py:108: TOMLDecodeError: Expected "''" (at end of document)' +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- " \t.. code-block:: toml" +- '' +- " \t\t[project]" +- '-' +- '-' +- "-\t\tname = 'my-project'" +- '-' +- '-' +- "-\t\tversion=\"1.2.3\"" +- "-\t\tlicense = {file = \"LICENSE\"}" +- "+\t\tname = \"my-project\"" +- "+\t\tversion = \"1.2.3\"" +- "+\t\tlicense = { file = \"LICENSE\" }" +- '' +- '' +- " \t.. code-block:: TOML" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_7_._py_ new file mode 100644 index 0000000..78b5fa6 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_7_._py_ @@ -0,0 +1,143 @@ +def foo(): + ''' + + .. code-block:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: python3 + + for item in [a,b,c] : + if item: print(item) + + + .. code-cell:: python3 + :count: 1 + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. sourcecode:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. parsed-literal:: python + + print ( 'Hello World' + + ) + + for item in [a,b,c] : + if item: print(item) + + + .. code-block:: toml + + [project] + name = "my-project" + version = "1.2.3" + license = { file = "LICENSE" } + + + .. code-block:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = {file = "LICENSE"} + + + .. code:: TOML + + [project] + + + name = 'my-project' + + + version="1.2.3" + license = { + file = "LICENSE", + } + + .. sourcecode:: toml + + [project] + name = 'my-project + + + .. code-block:: JSON + + { + "key": "value", + "key2": "value2", + } + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + + .. code-block:: bash + + echo "Hello World" + + + .. code:: YAML + + name: my-project + version: 1.2.3 + + .. a-directive:: + + .. code-block:: json + + {"key": "value", "key2": "value2"} + + .. code-block:: bash + + $ conda config --add channels https://conda.anaconda.org/conda-forge + $ conda config --add channels https://conda.anaconda.org/domdfcoding + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_7_.yml new file mode 100644 index 0000000..b5a0d71 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_example_rst_toml_python_false_7_.yml @@ -0,0 +1,24 @@ +err: +- '' +out: +- "--- .../example.py\t(original)" +- "+++ .../example.py\t(reformatted)" +- '@@ -71,13 +71,9 @@' +- " \t.. code-block:: toml" +- '' +- " \t\t[project]" +- '-' +- '-' +- "-\t\tname = 'my-project'" +- '-' +- '-' +- "-\t\tversion=\"1.2.3\"" +- "-\t\tlicense = {file = \"LICENSE\"}" +- "+\t\tname = \"my-project\"" +- "+\t\tversion = \"1.2.3\"" +- "+\t\tlicense = { file = \"LICENSE\" }" +- '' +- '' +- " \t.. code-block:: TOML" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_0_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_1_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_2_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_3_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_4_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_5_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_6_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_7_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_empty_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_0_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_1_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_2_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_3_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_4_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_5_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_6_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_7_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_0_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_1_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_2_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_3_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_4_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_5_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_6_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_7_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_caps_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_0_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_1_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_2_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_3_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_4_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_5_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_6_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_7_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_ini_python_false_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_0_._py_ new file mode 100644 index 0000000..cccfb1c --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_0_.yml new file mode 100644 index 0000000..c0c31af --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_0_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\t>>> for line in coloured_diff (" +- "+\t\t>>> for line in coloured_diff(" +- " \t\t... \t\t\"one two three four\".split()," +- " \t\t... \t\t\"zero one tree four\".split()," +- "-\t\t... \t\"Original\"," +- "-\t\t... \"Current\"," +- "+\t\t... \t\t\"Original\"," +- "+\t\t... \t\t\"Current\"," +- " \t\t... \t\t\"2005-01-26 23:30:50\"," +- " \t\t... \t\t\"2010-04-02 10:20:52\"," +- " \t\t... \t\tlineterm=''," +- "-\t\t... \t):" +- "-\t\t... \t\tprint(line)" +- "+\t\t... \t\t):" +- "+\t\t... \tprint(line)" +- " \t'''" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_1_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_2_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_3_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_4_._py_ new file mode 100644 index 0000000..cccfb1c --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_4_.yml new file mode 100644 index 0000000..c0c31af --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_4_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\t>>> for line in coloured_diff (" +- "+\t\t>>> for line in coloured_diff(" +- " \t\t... \t\t\"one two three four\".split()," +- " \t\t... \t\t\"zero one tree four\".split()," +- "-\t\t... \t\"Original\"," +- "-\t\t... \"Current\"," +- "+\t\t... \t\t\"Original\"," +- "+\t\t... \t\t\"Current\"," +- " \t\t... \t\t\"2005-01-26 23:30:50\"," +- " \t\t... \t\t\"2010-04-02 10:20:52\"," +- " \t\t... \t\tlineterm=''," +- "-\t\t... \t):" +- "-\t\t... \t\tprint(line)" +- "+\t\t... \t\t):" +- "+\t\t... \tprint(line)" +- " \t'''" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_5_._py_ new file mode 100644 index 0000000..cccfb1c --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_5_.yml new file mode 100644 index 0000000..c0c31af --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_5_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\t>>> for line in coloured_diff (" +- "+\t\t>>> for line in coloured_diff(" +- " \t\t... \t\t\"one two three four\".split()," +- " \t\t... \t\t\"zero one tree four\".split()," +- "-\t\t... \t\"Original\"," +- "-\t\t... \"Current\"," +- "+\t\t... \t\t\"Original\"," +- "+\t\t... \t\t\"Current\"," +- " \t\t... \t\t\"2005-01-26 23:30:50\"," +- " \t\t... \t\t\"2010-04-02 10:20:52\"," +- " \t\t... \t\tlineterm=''," +- "-\t\t... \t):" +- "-\t\t... \t\tprint(line)" +- "+\t\t... \t\t):" +- "+\t\t... \tprint(line)" +- " \t'''" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_6_._py_ new file mode 100644 index 0000000..cccfb1c --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_6_.yml new file mode 100644 index 0000000..c0c31af --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_6_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\t>>> for line in coloured_diff (" +- "+\t\t>>> for line in coloured_diff(" +- " \t\t... \t\t\"one two three four\".split()," +- " \t\t... \t\t\"zero one tree four\".split()," +- "-\t\t... \t\"Original\"," +- "-\t\t... \"Current\"," +- "+\t\t... \t\t\"Original\"," +- "+\t\t... \t\t\"Current\"," +- " \t\t... \t\t\"2005-01-26 23:30:50\"," +- " \t\t... \t\t\"2010-04-02 10:20:52\"," +- " \t\t... \t\tlineterm=''," +- "-\t\t... \t):" +- "-\t\t... \t\tprint(line)" +- "+\t\t... \t\t):" +- "+\t\t... \tprint(line)" +- " \t'''" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_7_._py_ new file mode 100644 index 0000000..cccfb1c --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_7_.yml new file mode 100644 index 0000000..c0c31af --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_7_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\t>>> for line in coloured_diff (" +- "+\t\t>>> for line in coloured_diff(" +- " \t\t... \t\t\"one two three four\".split()," +- " \t\t... \t\t\"zero one tree four\".split()," +- "-\t\t... \t\"Original\"," +- "-\t\t... \"Current\"," +- "+\t\t... \t\t\"Original\"," +- "+\t\t... \t\t\"Current\"," +- " \t\t... \t\t\"2005-01-26 23:30:50\"," +- " \t\t... \t\t\"2010-04-02 10:20:52\"," +- " \t\t... \t\tlineterm=''," +- "-\t\t... \t):" +- "-\t\t... \t\tprint(line)" +- "+\t\t... \t\t):" +- "+\t\t... \tprint(line)" +- " \t'''" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_0_._py_ new file mode 100644 index 0000000..cccfb1c --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_0_.yml new file mode 100644 index 0000000..c0c31af --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_0_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\t>>> for line in coloured_diff (" +- "+\t\t>>> for line in coloured_diff(" +- " \t\t... \t\t\"one two three four\".split()," +- " \t\t... \t\t\"zero one tree four\".split()," +- "-\t\t... \t\"Original\"," +- "-\t\t... \"Current\"," +- "+\t\t... \t\t\"Original\"," +- "+\t\t... \t\t\"Current\"," +- " \t\t... \t\t\"2005-01-26 23:30:50\"," +- " \t\t... \t\t\"2010-04-02 10:20:52\"," +- " \t\t... \t\tlineterm=''," +- "-\t\t... \t):" +- "-\t\t... \t\tprint(line)" +- "+\t\t... \t\t):" +- "+\t\t... \tprint(line)" +- " \t'''" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_1_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_2_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_3_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_4_._py_ new file mode 100644 index 0000000..cccfb1c --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_4_.yml new file mode 100644 index 0000000..c0c31af --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_4_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\t>>> for line in coloured_diff (" +- "+\t\t>>> for line in coloured_diff(" +- " \t\t... \t\t\"one two three four\".split()," +- " \t\t... \t\t\"zero one tree four\".split()," +- "-\t\t... \t\"Original\"," +- "-\t\t... \"Current\"," +- "+\t\t... \t\t\"Original\"," +- "+\t\t... \t\t\"Current\"," +- " \t\t... \t\t\"2005-01-26 23:30:50\"," +- " \t\t... \t\t\"2010-04-02 10:20:52\"," +- " \t\t... \t\tlineterm=''," +- "-\t\t... \t):" +- "-\t\t... \t\tprint(line)" +- "+\t\t... \t\t):" +- "+\t\t... \tprint(line)" +- " \t'''" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_5_._py_ new file mode 100644 index 0000000..cccfb1c --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_5_.yml new file mode 100644 index 0000000..c0c31af --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_5_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\t>>> for line in coloured_diff (" +- "+\t\t>>> for line in coloured_diff(" +- " \t\t... \t\t\"one two three four\".split()," +- " \t\t... \t\t\"zero one tree four\".split()," +- "-\t\t... \t\"Original\"," +- "-\t\t... \"Current\"," +- "+\t\t... \t\t\"Original\"," +- "+\t\t... \t\t\"Current\"," +- " \t\t... \t\t\"2005-01-26 23:30:50\"," +- " \t\t... \t\t\"2010-04-02 10:20:52\"," +- " \t\t... \t\tlineterm=''," +- "-\t\t... \t):" +- "-\t\t... \t\tprint(line)" +- "+\t\t... \t\t):" +- "+\t\t... \tprint(line)" +- " \t'''" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_6_._py_ new file mode 100644 index 0000000..cccfb1c --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_6_.yml new file mode 100644 index 0000000..c0c31af --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_6_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\t>>> for line in coloured_diff (" +- "+\t\t>>> for line in coloured_diff(" +- " \t\t... \t\t\"one two three four\".split()," +- " \t\t... \t\t\"zero one tree four\".split()," +- "-\t\t... \t\"Original\"," +- "-\t\t... \"Current\"," +- "+\t\t... \t\t\"Original\"," +- "+\t\t... \t\t\"Current\"," +- " \t\t... \t\t\"2005-01-26 23:30:50\"," +- " \t\t... \t\t\"2010-04-02 10:20:52\"," +- " \t\t... \t\tlineterm=''," +- "-\t\t... \t):" +- "-\t\t... \t\tprint(line)" +- "+\t\t... \t\t):" +- "+\t\t... \tprint(line)" +- " \t'''" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_7_._py_ new file mode 100644 index 0000000..cccfb1c --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_7_.yml new file mode 100644 index 0000000..c0c31af --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python3_toml_false_7_.yml @@ -0,0 +1,27 @@ +err: +- '' +out: +- "--- .../py_code.py\t(original)" +- "+++ .../py_code.py\t(reformatted)" +- '@@ -4,14 +4,14 @@' +- '' +- " \t.. code-block:: python3" +- '' +- "-\t\t>>> for line in coloured_diff (" +- "+\t\t>>> for line in coloured_diff(" +- " \t\t... \t\t\"one two three four\".split()," +- " \t\t... \t\t\"zero one tree four\".split()," +- "-\t\t... \t\"Original\"," +- "-\t\t... \"Current\"," +- "+\t\t... \t\t\"Original\"," +- "+\t\t... \t\t\"Current\"," +- " \t\t... \t\t\"2005-01-26 23:30:50\"," +- " \t\t... \t\t\"2010-04-02 10:20:52\"," +- " \t\t... \t\tlineterm=''," +- "-\t\t... \t):" +- "-\t\t... \t\tprint(line)" +- "+\t\t... \t\t):" +- "+\t\t... \tprint(line)" +- " \t'''" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_0_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_1_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_2_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_3_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_4_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_5_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_6_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_7_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_python_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_0_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_1_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_2_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_3_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_4_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_5_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_6_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_7_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_0_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_1_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_2_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_3_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_4_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_5_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_6_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_7_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_caps_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_0_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_0_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_0_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_0_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_1_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_1_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_1_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_1_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_2_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_2_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_2_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_2_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_3_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_3_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_3_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_3_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_4_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_4_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_4_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_4_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_5_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_5_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_5_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_5_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_6_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_6_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_6_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_6_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_7_._py_ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_7_._py_ new file mode 100644 index 0000000..9e5450d --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_7_._py_ @@ -0,0 +1,18 @@ +def foo(): + ''' + + + .. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) + ''' + pass diff --git a/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_7_.yml b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_docstrings_tab_single_py_code_rst_toml_python_false_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_custom_entry_point_py_code_rst_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_custom_entry_point_py_code_rst_.rst new file mode 100644 index 0000000..695ce56 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_custom_entry_point_py_code_rst_.rst @@ -0,0 +1,5 @@ + + +.. code-block:: python3 + + Hello World diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_custom_entry_point_py_code_rst_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_custom_entry_point_py_code_rst_.yml new file mode 100644 index 0000000..50fb65d --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_custom_entry_point_py_code_rst_.yml @@ -0,0 +1,22 @@ +err: +- '' +out: +- "--- .../py_code.rst\t(original)" +- "+++ .../py_code.rst\t(reformatted)" +- '@@ -2,14 +2,5 @@' +- '' +- ' .. code-block:: python3' +- '' +- "-\t>>> for line in coloured_diff (" +- "-\t... \t\t\"one two three four\".split()," +- "-\t... \t\t\"zero one tree four\".split()," +- "-\t... \t\"Original\"," +- "-\t... \"Current\"," +- "-\t... \t\t\"2005-01-26 23:30:50\"," +- "-\t... \t\t\"2010-04-02 10:20:52\"," +- "-\t... \t\tlineterm=''," +- "-\t... \t):" +- "-\t... \t\tprint(line)" +- "+\tHello World" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_0_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_0_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_0_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_0_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_1_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_1_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_1_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_1_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_2_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_2_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_2_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_2_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_3_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_3_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_3_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_3_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_4_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_4_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_4_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_4_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_5_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_5_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_5_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_5_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_6_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_6_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_6_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_6_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_7_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_7_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_7_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_7_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_empty_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_0_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_0_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_0_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_0_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_1_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_1_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_1_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_1_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_2_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_2_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_2_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_2_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_3_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_3_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_3_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_3_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_4_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_4_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_4_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_4_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_5_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_5_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_5_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_5_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_6_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_6_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_6_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_6_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_7_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_7_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_7_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_7_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_0_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_0_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_0_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_0_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_1_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_1_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_1_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_1_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_2_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_2_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_2_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_2_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_3_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_3_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_3_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_3_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_4_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_4_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_4_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_4_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_5_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_5_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_5_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_5_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_6_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_6_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_6_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_6_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_7_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_7_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_7_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_7_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_caps_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_0_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_0_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_0_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_0_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_1_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_1_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_1_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_1_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_2_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_2_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_2_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_2_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_3_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_3_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_3_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_3_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_4_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_4_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_4_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_4_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_5_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_5_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_5_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_5_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_6_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_6_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_6_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_6_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_7_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_7_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_7_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_7_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_ini_python_false_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_0_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_0_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_0_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_0_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_1_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_1_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_1_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_1_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_2_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_2_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_2_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_2_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_3_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_3_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_3_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_3_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_4_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_4_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_4_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_4_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_5_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_5_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_5_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_5_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_6_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_6_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_6_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_6_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_7_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_7_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_7_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_7_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_0_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_0_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_0_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_0_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_1_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_1_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_1_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_1_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_2_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_2_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_2_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_2_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_3_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_3_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_3_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_3_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_4_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_4_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_4_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_4_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_5_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_5_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_5_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_5_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_6_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_6_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_6_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_6_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_7_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_7_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_7_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_7_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_0_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_0_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_0_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_0_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_1_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_1_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_1_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_1_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_2_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_2_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_2_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_2_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_3_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_3_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_3_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_3_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_4_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_4_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_4_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_4_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_5_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_5_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_5_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_5_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_6_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_6_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_6_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_6_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_7_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_7_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_7_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_7_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_0_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_0_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_0_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_0_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_1_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_1_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_1_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_1_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_2_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_2_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_2_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_2_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_3_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_3_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_3_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_3_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_4_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_4_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_4_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_4_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_5_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_5_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_5_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_5_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_6_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_6_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_6_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_6_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_7_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_7_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_7_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_7_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_indent_new_error_msg_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_0_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_0_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_0_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_0_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_1_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_1_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_1_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_1_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_2_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_2_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_2_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_2_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_3_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_3_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_3_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_3_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_4_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_4_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_4_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_4_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_5_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_5_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_5_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_5_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_6_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_6_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_6_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_6_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_7_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_7_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_7_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_7_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_caps_new_error_msg_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_0_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_0_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_0_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_0_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_1_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_1_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_1_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_1_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_2_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_2_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_2_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_2_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_3_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_3_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_3_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_3_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_4_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_4_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_4_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_4_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_5_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_5_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_5_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_5_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_6_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_6_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_6_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_6_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_7_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_7_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_7_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_7_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_0_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_0_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_0_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_0_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_1_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_1_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_1_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_1_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_2_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_2_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_2_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_2_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_3_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_3_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_3_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_3_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_4_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_4_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_4_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_4_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_5_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_5_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_5_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_5_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_6_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_6_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_6_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_6_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_7_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_7_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_7_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_7_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_indent_new_error_msg_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_0_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_0_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_0_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_0_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_1_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_1_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_1_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_1_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_2_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_2_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_2_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_2_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_3_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_3_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_3_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_3_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_4_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_4_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_4_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_4_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_5_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_5_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_5_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_5_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_6_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_6_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_6_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_6_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_7_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_7_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_7_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_7_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_json_new_error_msg_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_0_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_0_.rst new file mode 100644 index 0000000..c70a2e7 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_0_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_0_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_0_.yml new file mode 100644 index 0000000..3067bf0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_0_.yml @@ -0,0 +1,26 @@ +err: +- '' +out: +- "--- .../py_code.rst\t(original)" +- "+++ .../py_code.rst\t(reformatted)" +- '@@ -2,14 +2,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "-\t>>> for line in coloured_diff (" +- "+\t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "-\t... \t\"Original\"," +- "-\t... \"Current\"," +- "+\t... \t\t\"Original\"," +- "+\t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "-\t... \t):" +- "-\t... \t\tprint(line)" +- "+\t... \t\t):" +- "+\t... \tprint(line)" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_1_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_1_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_1_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_1_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_2_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_2_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_2_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_2_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_3_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_3_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_3_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_3_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_4_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_4_.rst new file mode 100644 index 0000000..c70a2e7 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_4_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_4_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_4_.yml new file mode 100644 index 0000000..3067bf0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_4_.yml @@ -0,0 +1,26 @@ +err: +- '' +out: +- "--- .../py_code.rst\t(original)" +- "+++ .../py_code.rst\t(reformatted)" +- '@@ -2,14 +2,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "-\t>>> for line in coloured_diff (" +- "+\t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "-\t... \t\"Original\"," +- "-\t... \"Current\"," +- "+\t... \t\t\"Original\"," +- "+\t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "-\t... \t):" +- "-\t... \t\tprint(line)" +- "+\t... \t\t):" +- "+\t... \tprint(line)" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_5_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_5_.rst new file mode 100644 index 0000000..c70a2e7 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_5_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_5_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_5_.yml new file mode 100644 index 0000000..3067bf0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_5_.yml @@ -0,0 +1,26 @@ +err: +- '' +out: +- "--- .../py_code.rst\t(original)" +- "+++ .../py_code.rst\t(reformatted)" +- '@@ -2,14 +2,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "-\t>>> for line in coloured_diff (" +- "+\t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "-\t... \t\"Original\"," +- "-\t... \"Current\"," +- "+\t... \t\t\"Original\"," +- "+\t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "-\t... \t):" +- "-\t... \t\tprint(line)" +- "+\t... \t\t):" +- "+\t... \tprint(line)" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_6_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_6_.rst new file mode 100644 index 0000000..c70a2e7 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_6_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_6_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_6_.yml new file mode 100644 index 0000000..3067bf0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_6_.yml @@ -0,0 +1,26 @@ +err: +- '' +out: +- "--- .../py_code.rst\t(original)" +- "+++ .../py_code.rst\t(reformatted)" +- '@@ -2,14 +2,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "-\t>>> for line in coloured_diff (" +- "+\t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "-\t... \t\"Original\"," +- "-\t... \"Current\"," +- "+\t... \t\t\"Original\"," +- "+\t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "-\t... \t):" +- "-\t... \t\tprint(line)" +- "+\t... \t\t):" +- "+\t... \tprint(line)" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_7_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_7_.rst new file mode 100644 index 0000000..c70a2e7 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_7_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_7_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_7_.yml new file mode 100644 index 0000000..3067bf0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_7_.yml @@ -0,0 +1,26 @@ +err: +- '' +out: +- "--- .../py_code.rst\t(original)" +- "+++ .../py_code.rst\t(reformatted)" +- '@@ -2,14 +2,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "-\t>>> for line in coloured_diff (" +- "+\t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "-\t... \t\"Original\"," +- "-\t... \"Current\"," +- "+\t... \t\t\"Original\"," +- "+\t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "-\t... \t):" +- "-\t... \t\tprint(line)" +- "+\t... \t\t):" +- "+\t... \tprint(line)" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_0_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_0_.rst new file mode 100644 index 0000000..c70a2e7 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_0_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_0_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_0_.yml new file mode 100644 index 0000000..3067bf0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_0_.yml @@ -0,0 +1,26 @@ +err: +- '' +out: +- "--- .../py_code.rst\t(original)" +- "+++ .../py_code.rst\t(reformatted)" +- '@@ -2,14 +2,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "-\t>>> for line in coloured_diff (" +- "+\t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "-\t... \t\"Original\"," +- "-\t... \"Current\"," +- "+\t... \t\t\"Original\"," +- "+\t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "-\t... \t):" +- "-\t... \t\tprint(line)" +- "+\t... \t\t):" +- "+\t... \tprint(line)" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_1_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_1_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_1_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_1_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_2_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_2_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_2_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_2_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_3_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_3_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_3_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_3_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_4_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_4_.rst new file mode 100644 index 0000000..c70a2e7 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_4_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_4_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_4_.yml new file mode 100644 index 0000000..3067bf0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_4_.yml @@ -0,0 +1,26 @@ +err: +- '' +out: +- "--- .../py_code.rst\t(original)" +- "+++ .../py_code.rst\t(reformatted)" +- '@@ -2,14 +2,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "-\t>>> for line in coloured_diff (" +- "+\t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "-\t... \t\"Original\"," +- "-\t... \"Current\"," +- "+\t... \t\t\"Original\"," +- "+\t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "-\t... \t):" +- "-\t... \t\tprint(line)" +- "+\t... \t\t):" +- "+\t... \tprint(line)" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_5_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_5_.rst new file mode 100644 index 0000000..c70a2e7 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_5_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_5_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_5_.yml new file mode 100644 index 0000000..3067bf0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_5_.yml @@ -0,0 +1,26 @@ +err: +- '' +out: +- "--- .../py_code.rst\t(original)" +- "+++ .../py_code.rst\t(reformatted)" +- '@@ -2,14 +2,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "-\t>>> for line in coloured_diff (" +- "+\t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "-\t... \t\"Original\"," +- "-\t... \"Current\"," +- "+\t... \t\t\"Original\"," +- "+\t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "-\t... \t):" +- "-\t... \t\tprint(line)" +- "+\t... \t\t):" +- "+\t... \tprint(line)" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_6_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_6_.rst new file mode 100644 index 0000000..c70a2e7 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_6_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_6_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_6_.yml new file mode 100644 index 0000000..3067bf0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_6_.yml @@ -0,0 +1,26 @@ +err: +- '' +out: +- "--- .../py_code.rst\t(original)" +- "+++ .../py_code.rst\t(reformatted)" +- '@@ -2,14 +2,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "-\t>>> for line in coloured_diff (" +- "+\t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "-\t... \t\"Original\"," +- "-\t... \"Current\"," +- "+\t... \t\t\"Original\"," +- "+\t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "-\t... \t):" +- "-\t... \t\tprint(line)" +- "+\t... \t\t):" +- "+\t... \tprint(line)" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_7_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_7_.rst new file mode 100644 index 0000000..c70a2e7 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_7_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_7_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_7_.yml new file mode 100644 index 0000000..3067bf0 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python3_toml_false_7_.yml @@ -0,0 +1,26 @@ +err: +- '' +out: +- "--- .../py_code.rst\t(original)" +- "+++ .../py_code.rst\t(reformatted)" +- '@@ -2,14 +2,14 @@' +- '' +- ' .. code-block:: python3' +- '' +- "-\t>>> for line in coloured_diff (" +- "+\t>>> for line in coloured_diff(" +- " \t... \t\t\"one two three four\".split()," +- " \t... \t\t\"zero one tree four\".split()," +- "-\t... \t\"Original\"," +- "-\t... \"Current\"," +- "+\t... \t\t\"Original\"," +- "+\t... \t\t\"Current\"," +- " \t... \t\t\"2005-01-26 23:30:50\"," +- " \t... \t\t\"2010-04-02 10:20:52\"," +- " \t... \t\tlineterm=''," +- "-\t... \t):" +- "-\t... \t\tprint(line)" +- "+\t... \t\t):" +- "+\t... \tprint(line)" +- '' +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_0_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_0_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_0_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_0_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_1_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_1_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_1_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_1_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_2_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_2_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_2_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_2_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_3_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_3_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_3_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_3_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_4_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_4_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_4_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_4_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_5_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_5_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_5_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_5_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_6_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_6_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_6_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_6_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_7_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_7_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_7_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_7_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_python_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_0_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_0_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_0_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_0_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_1_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_1_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_1_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_1_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_2_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_2_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_2_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_2_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_3_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_3_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_3_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_3_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_4_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_4_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_4_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_4_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_5_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_5_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_5_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_5_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_6_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_6_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_6_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_6_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_7_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_7_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_7_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_7_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_0_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_0_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_0_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_0_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_1_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_1_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_1_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_1_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_2_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_2_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_2_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_2_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_3_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_3_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_3_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_3_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_4_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_4_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_4_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_4_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_5_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_5_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_5_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_5_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_6_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_6_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_6_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_6_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_7_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_7_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_7_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_7_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_caps_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_0_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_0_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_0_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_0_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_0_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_0_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_1_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_1_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_1_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_1_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_1_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_1_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_2_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_2_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_2_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_2_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_2_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_2_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_3_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_3_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_3_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_3_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_3_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_3_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_4_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_4_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_4_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_4_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_4_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_4_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_5_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_5_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_5_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_5_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_5_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_5_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_6_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_6_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_6_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_6_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_6_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_6_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- '' diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_7_.rst b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_7_.rst new file mode 100644 index 0000000..b734e87 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_7_.rst @@ -0,0 +1,14 @@ + + +.. code-block:: python3 + + >>> for line in coloured_diff ( + ... "one two three four".split(), + ... "zero one tree four".split(), + ... "Original", + ... "Current", + ... "2005-01-26 23:30:50", + ... "2010-04-02 10:20:52", + ... lineterm='', + ... ): + ... print(line) diff --git a/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_7_.yml b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_7_.yml new file mode 100644 index 0000000..46fdb94 --- /dev/null +++ b/tests/test_snippet_fmt_/test_snippet_fmt_py_code_rst_toml_python_false_7_.yml @@ -0,0 +1,4 @@ +err: +- '' +out: +- ''