remove multiline
This commit is contained in:
@@ -28,22 +28,22 @@ class TestModalTextEditorOperator:
|
||||
assert hasattr(TEXT_TEXTURE_OT_edit_text, 'draw')
|
||||
|
||||
def test_poll_denies_access_in_free_version(self):
|
||||
"""poll() must return False when has_text_editor() is False (FREE version)."""
|
||||
"""poll() must return False when running in the free version."""
|
||||
from src.operators.text_editor_ops import TEXT_TEXTURE_OT_edit_text
|
||||
|
||||
mock_context = Mock()
|
||||
|
||||
with patch('src.operators.text_editor_ops.has_text_editor', return_value=False):
|
||||
with patch('src.operators.text_editor_ops.is_full_version', return_value=False):
|
||||
result = TEXT_TEXTURE_OT_edit_text.poll(mock_context)
|
||||
assert result is False, "FREE version should not have access to text editor"
|
||||
|
||||
def test_poll_allows_access_in_pro_version(self):
|
||||
"""poll() must return True when has_text_editor() is True (PRO version)."""
|
||||
"""poll() must return True when running in the pro version."""
|
||||
from src.operators.text_editor_ops import TEXT_TEXTURE_OT_edit_text
|
||||
|
||||
mock_context = Mock()
|
||||
|
||||
with patch('src.operators.text_editor_ops.has_text_editor', return_value=True):
|
||||
with patch('src.operators.text_editor_ops.is_full_version', return_value=True):
|
||||
result = TEXT_TEXTURE_OT_edit_text.poll(mock_context)
|
||||
assert result is True, "PRO version should have access to text editor"
|
||||
|
||||
@@ -125,4 +125,4 @@ class TestModalTextEditorOperator:
|
||||
from src.operators import text_editor_ops
|
||||
|
||||
assert hasattr(text_editor_ops, 'unregister')
|
||||
assert callable(text_editor_ops.unregister)
|
||||
assert callable(text_editor_ops.unregister)
|
||||
|
||||
Reference in New Issue
Block a user