Skip to content

Remove ruamel-yaml-string package #1218

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 3 additions & 17 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ dev = [
"types-PyYAML<7.0.0,>=6.0.3",
"types-certifi<2021.10.9,>=2020.0.0",
"types-python-dateutil<3.0.0,>=2.0.0",
"ruamel-yaml-string>=0.1.1",
"syrupy>=4",
]

Expand Down
12 changes: 11 additions & 1 deletion tests/test_config.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
import json
import os
from io import StringIO
from pathlib import Path
from typing import Any

import pytest
from ruamel.yaml import YAML
from ruamel.yaml import YAML as _YAML

from openapi_python_client.config import ConfigFile


class YAML(_YAML):
def dump_to_string(self, data: Any, **kwargs: Any) -> str:
stream = StringIO()
self.dump(data=data, stream=stream, **kwargs)
return stream.getvalue()


yaml = YAML(typ=["safe", "string"])


Expand Down