8000 graphql-core-legacy/conftest.py at v2.3.1 · graphql-python/graphql-core-legacy · GitHub
[go: up one dir, main page]

Skip to content
{"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":"bin","path":"bin","contentType":"directory"},{"name":"docs","path":"docs","contentType":"directory"},{"name":"graphql","path":"graphql","contentType":"directory"},{"name":"scripts","path":"scripts","contentType":"directory"},{"name":"tests","path":"tests","contentType":"directory"},{"name":"tests_py35","path":"tests_py35","contentType":"directory"},{"name":".flake8","path":".flake8","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".pre-commit-config.yaml","path":".pre-commit-config.yaml","contentType":"file"},{"name":".travis.yml","path":".travis.yml","contentType":"file"},{"name":"CODEOWNERS","path":"CODEOWNERS","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"MANIFEST.in","path":"MANIFEST.in","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"conftest.py","path":"conftest.py","contentType":"file"},{"name":"setup.cfg","path":"setup.cfg","contentType":"file"},{"name":"setup.py","path":"setup.py","contentType":"file"},{"name":"tox.ini","path":"tox.ini","contentType":"file"}],"totalCount":18}},"fileTreeProcessingTime":8.52228,"foldersToFetch":[],"incompleteFileTree":false,"repo":{"id":43769764,"defaultBranch":"master","name":"graphql-core-legacy","ownerLogin":"graphql-python","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2015-10-06T18:20:15.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/15002022?v=4","public":true,"private":false,"isOrgOwned":true},"codeLineWrapEnabled":false,"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"v2.3.1","listCacheKey":"v0:1559500934.0","canEdit":false,"refType":"tag","currentOid":"fe703f0d176c78b205d2abf929193f1e910fe4a0"},"path":"conftest.py","currentUser":null,"blob":{"rawLines":["# Configuration for pytest to automatically collect types.","# Thanks to Guilherme Salgado.","import pytest","","try:"," import pyannotate_runtime # noqa: F401",""," PYANOTATE_PRESENT = True","except ImportError:"," PYANOTATE_PRESENT = False","","if PYANOTATE_PRESENT:",""," def pytest_collection_finish(session):"," \"\"\"Handle the pytest collection finish hook: configure pyannotate."," Explicitly delay importing `collect_types` until all tests have"," been collected. This gives gevent a chance to monkey patch the"," world before importing pyannotate."," \"\"\""," from pyannotate_runtime import collect_types",""," collect_types.init_types_collection()",""," @pytest.fixture(autouse=True)"," def collect_types_fixture():"," from pyannotate_runtime import collect_types",""," collect_types.resume()"," yield"," collect_types.pause()",""," def pytest_sessionfinish(session, exitstatus):"," from pyannotate_runtime import collect_types",""," collect_types.dump_stats(\"type_info.json\")"],"stylingDirectives":null,"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/graphql-python/graphql-core-legacy/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"conftest.py","displayUrl":"https://github.com/graphql-python/graphql-core-legacy/blob/v2.3.1/conftest.py?raw=true","headerInfo":{"blobSize":"1 KB","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":null,"isGitLfs":false,"onBranch":false,"shortPath":"b1db482","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-python%2Fgraphql-core-legacy%2Fblob%2Fv2.3.1%2Fconftest.py","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"35","truncatedSloc":"26"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"Python","languageID":303,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/graphql-python/graphql-core-legacy/blob/v2.3.1/conftest.py","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/graphql-python/graphql-core-legacy/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/graphql-python/graphql-core-legacy/raw/refs/tags/v2.3.1/conftest.py","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timed_out":false,"not_analyzed":false,"symbols":[{"name":"pytest_collection_finish","kind":"function","ident_start":266,"ident_end":290,"extent_start":262,"extent_end":674,"fully_qualified_name":"pytest_collection_finish","ident_utf16":{"start":{"line_number":13,"utf16_col":8},"end":{"line_number":13,"utf16_col":32}},"extent_utf16":{"start":{"line_number":13,"utf16_col":4},"end":{"line_number":21,"utf16_col":45}}},{"name":"collect_types_fixture","kind":"function","ident_start":718,"ident_end":739,"extent_start":714,"extent_end":871,"fully_qualified_name":"collect_types_fixture","ident_utf16":{"start":{"line_number":24,"utf16_col":8},"end":{"line_number":24,"utf16_col":29}},"extent_utf16":{"start":{"line_number":24,"utf16_col":4},"end":{"line_number":29,"utf16_col":29}}},{"name":"pytest_sessionfinish","kind":"function","ident_start":881,"ident_end":901,"extent_start":877,"extent_end":1028,"fully_qualified_name":"pytest_sessionfinish","ident_utf16":{"start":{"line_number":31,"utf16_col":8},"end":{"line_number":31,"utf16_col":28}},"extent_utf16":{"start":{"line_number":31,"utf16_col":4},"end":{"line_number":34,"utf16_col":50}}}]}},"copilotInfo":null,"copilotAccessAllowed":false,"modelsAccessAllowed":false,"modelsRepoIntegrationEnabled":false,"csrf_tokens":{"/graphql-python/graphql-core-legacy/branches":{"post":"ePrA7NGqSPNLj6AzplXP5TRyaUratXb0pHsbzeOJi-IMkj6ZPjp5FTtqmnb_tS_NclDtlXQSa1PhUeOtlgxDkw"},"/repos/preferences":{"post":"hbKaejboHe16QVWflzPnBP2bW_Ywv8PgerzU-GKCwt4l6WnTfxfMyaKYEPUJVW8rEgFPy_FXzUChIKAKNpWX3g"}}},"title":"graphql-core-legacy/conftest.py at v2.3.1 · graphql-python/graphql-core-legacy","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-263cab1760dd.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-2e7f7047116e.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true,"github_models_repo_integration":false}}}
0