mirror of
https://github.com/nvbn/thefuck.git
synced 2025-09-19 03:32:31 +01:00
Move special data types to types
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
from mock import Mock
|
||||
from thefuck.utils import sudo_support, wrap_settings
|
||||
from thefuck.main import Command
|
||||
from thefuck.conf import Settings
|
||||
from thefuck.types import Command, Settings
|
||||
|
||||
|
||||
def test_wrap_settings():
|
||||
fn = lambda _, settings: settings._conf
|
||||
fn = lambda _, settings: settings
|
||||
assert wrap_settings({'key': 'val'})(fn)(None, Settings({})) \
|
||||
== {'key': 'val'}
|
||||
assert wrap_settings({'key': 'new-val'})(fn)(
|
||||
|
Reference in New Issue
Block a user