mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-05 07:56:14 +02:00
Ensure that line endings in all py files are Linux style instead of Windows (#1250)
This commit is contained in:
parent
6fc252b2c7
commit
e84bb603eb
3 changed files with 54 additions and 54 deletions
|
@ -1,13 +1,13 @@
|
|||
from unittest import mock
|
||||
import pytest
|
||||
import sys
|
||||
|
||||
|
||||
@pytest.mark.filterwarnings(
|
||||
"ignore:.*imp module is deprecated.*"
|
||||
) # ansiwrap spits out an unrelated warning
|
||||
def test_initialize_autocomplete_runs_without_readline():
|
||||
from jrnl import install
|
||||
|
||||
with mock.patch.dict(sys.modules, {"readline": None}):
|
||||
install._initialize_autocomplete() # should not throw exception
|
||||
from unittest import mock
|
||||
import pytest
|
||||
import sys
|
||||
|
||||
|
||||
@pytest.mark.filterwarnings(
|
||||
"ignore:.*imp module is deprecated.*"
|
||||
) # ansiwrap spits out an unrelated warning
|
||||
def test_initialize_autocomplete_runs_without_readline():
|
||||
from jrnl import install
|
||||
|
||||
with mock.patch.dict(sys.modules, {"readline": None}):
|
||||
install._initialize_autocomplete() # should not throw exception
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue