10 lines
300 B
Python
10 lines
300 B
Python
import pytest
|
|
from genesis.writer.exceptions import WriterGenerationError
|
|
|
|
|
|
def test_writer_generation_error_is_exception():
|
|
with pytest.raises(WriterGenerationError):
|
|
raise WriterGenerationError("生成失败")
|
|
with pytest.raises(Exception):
|
|
raise WriterGenerationError("x")
|