| 12345678910111213141516171819202122232425262728293031 |
- import pytest
- from pytest import mark
- from jogai import exceptions, utils
- @mark.xfail
- @mark.parametrize('key', ['', 'foo', 'K_', -1, 0, None])
- def test_eval_key(key):
- utils.eval_key(key)
- def test_load_image_with_wrong_types():
- with pytest.raises(TypeError):
- utils._load_image(-1, -1)
- def test_load_not_found_image():
- with pytest.raises(FileNotFoundError):
- utils._load_image('none', 'none.png')
- def test_load_image_with_wrong_file_format():
- with pytest.raises(exceptions.UnsupportedFileFormatError):
- utils._load_image('data', '01.yaml')
- """
- def test_convert_function_argumens_to_string_with_wrong_type():
- utils._convert_function_arguments_to_string()
- """
|