MCPcopy
hub / github.com/pex-tool/pex / test_parse_empty

Function test_parse_empty

tests/test_pep_723.py:18–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16
17
18def test_parse_empty():
19 # type: () -> None
20
21 assert not ScriptMetadata.parse("")
22 assert not ScriptMetadata.parse(
23 dedent(
24 """\
25 # /// script
26 # ///
27 """
28 )
29 )
30 assert not ScriptMetadata.parse(
31 dedent(
32 """\
33 # /// script
34 # unknown_key = 42
35 # ///
36 """
37 )
38 )
39 assert not ScriptMetadata.parse(
40 dedent(
41 """\
42 # /// script
43 # unknown_key = 42
44 # ///
45 # dependencies = ["ansicolors"]
46 """
47 )
48 )
49
50
51def test_parse_unterminated():

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected