Created
January 19, 2021 06:32
-
-
Save whtsky/dfb2bad47522e7dfbe1f3b34d27dbc64 to your computer and use it in GitHub Desktop.
mypy test data to pytest-mypy-plugins
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
outputs=[] | |
with open('graphene_plugin.test', 'r') as f: | |
for x in f.read().strip().splitlines(): | |
if x.startswith("[case "): | |
outputs.append(f"- case: {x.replace('[case', '').replace(']', '').strip()}") | |
outputs.append(" main: |") | |
elif x == "[out]": | |
outputs.append(" out: |") | |
else: | |
outputs.append(f" {x}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment