mirror of
https://github.com/dtomlinson91/tembo.git
synced 2025-12-22 07:45:44 +00:00
adding latest
This commit is contained in:
@@ -230,7 +230,7 @@ def test_new_create_scoped_page_mismatched_token(
|
|||||||
|
|
||||||
config_scope = _new_get_config_scope("some_scope")
|
config_scope = _new_get_config_scope("some_scope")
|
||||||
inputs = ("some_input",)
|
inputs = ("some_input",)
|
||||||
if not example:
|
if not example[0]:
|
||||||
config_scope["example"] = None
|
config_scope["example"] = None
|
||||||
|
|
||||||
# act
|
# act
|
||||||
@@ -239,7 +239,13 @@ def test_new_create_scoped_page_mismatched_token(
|
|||||||
|
|
||||||
# assert
|
# assert
|
||||||
assert system_exit.value.code == 1
|
assert system_exit.value.code == 1
|
||||||
assert (
|
if not example[0]:
|
||||||
capsys.readouterr().out
|
assert (
|
||||||
== f'[TEMBO] Your tembo config.yml/template specifies 0 input tokens, you gave 1. Example: tembo new some_scope 🐘\n'
|
capsys.readouterr().out
|
||||||
)
|
== f'[TEMBO] Your tembo config.yml/template specifies 0 input tokens, you gave 1 🐘\n'
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
assert (
|
||||||
|
capsys.readouterr().out
|
||||||
|
== f'[TEMBO] Your tembo config.yml/template specifies 0 input tokens, you gave 1. Example: tembo new some_scope 🐘\n'
|
||||||
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user