samila/test/error_test.py

11 wiersze
299 B
Python
Czysty Zwykły widok Historia

2021-10-22 10:19:40 +00:00
# -*- coding: utf-8 -*-
"""
>>> from samila import *
2021-10-22 10:24:44 +00:00
>>> import os
>>> g = GenerativeImage(data="data.json")
2021-10-22 10:19:40 +00:00
Traceback (most recent call last):
...
samila.errors.samilaDataError: Provided data file is not supported. It should be either file or io.IOBase.
2021-10-22 10:24:44 +00:00
>>> with open('data.json', 'r')
2021-10-22 10:19:40 +00:00
"""