Asib27's picture
try 1
065fee7 verified
raw
history blame
362 Bytes
import unittest
from .fake_api import FAKE_SECRET_NAME
from .fake_api_client import make_fake_client
class CreateServiceTest(unittest.TestCase):
def test_secrets_repr(self):
client = make_fake_client()
secret = client.secrets.create(name="super_secret", data="secret")
assert secret.__repr__() == f"<Secret: '{FAKE_SECRET_NAME}'>"