Skip to content

Commit

Permalink
Corrected test set
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita-Smirnov-Exactpro committed Nov 27, 2024
1 parent 86d4eaa commit eacd06e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
7 changes: 5 additions & 2 deletions papermill/tests/notebooks/complex_parameters.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@
"# Interesting c variable\n",
"c: \"NoneType\" = None\n",
"# Not introspectable line\n",
"d = \"a = 3\" # str value with '=' character\n",
"e = (a != 3 and 2 <= a <= 3) or a == 1 # bool value with logical operators\n",
"d = \"a = 3\"\n",
"# str value with equal character\n",
"e = 1 # comment with '=' character\n",
"f = (a != 3 and 2 <= a <= 3) or a == 1\n",
"# bool value with logical operators\n",
"= 2\n",
"# Broken name definition\n"
]
Expand Down
15 changes: 9 additions & 6 deletions papermill/tests/test_inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,15 @@ def click_context():
"name": "d",
"inferred_type_name": "None",
"default": "\"a = 3\"",
"help": "str value with '=' character",
"help": ""
},
"e": {
"name": "e",
"e": {"name": "e", "inferred_type_name": "None", "default": "1", "help": "comment with '=' character",
},
"f": {
"name": "f",
"inferred_type_name": "None",
"default": "(a != 3 and 2 <= a <= 3) or a == 1",
"help": "bool value with logical operators",
"help": "",
},
},
),
Expand Down Expand Up @@ -99,8 +101,9 @@ def test_str_path():
" a: float (default 2.25) Variable a",
" b: List[str] (default ['Hello','World'])\n Nice list",
" c: NoneType (default None) ",
" d: Unknown type (default \"a = 3\")\n str value with '=' character",
" e: Unknown type (default (a != 3 and 2 <= a <= 3) or a == 1)\n bool value with logical operators",
" d: Unknown type (default \"a = 3\")",
" e: Unknown type (default 1) comment with '=' character",
" f: Unknown type (default (a != 3 and 2 <= a <= 3) or a == 1)",
],
),
(
Expand Down

0 comments on commit eacd06e

Please sign in to comment.