Skip to content

Commit

Permalink
Remove reference to Mock
Browse files Browse the repository at this point in the history
Since Python 3.3, unittest.mock has been part of the standard library
  • Loading branch information
thebeanogamer committed Oct 1, 2023
1 parent 4b55755 commit 61e7e9a
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 10 deletions.
1 change: 0 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
mock>=1.3.0
sh>=1.11
parameterized>=0.6.1
pytest
2 changes: 1 addition & 1 deletion test/cwd_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import unittest
import mock
from unittest import mock
import os
import tempfile
import shutil
Expand Down
2 changes: 1 addition & 1 deletion test/segments_test/bzr_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import unittest
from contextlib import ExitStack

import mock
from unittest import mock
import tempfile
import shutil
import sh
Expand Down
2 changes: 1 addition & 1 deletion test/segments_test/fossil_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from contextlib import ExitStack
from os import environ

import mock
from unittest import mock
import tempfile
import shutil
import sh
Expand Down
2 changes: 1 addition & 1 deletion test/segments_test/git_stash_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import unittest
from contextlib import ExitStack

import mock
from unittest import mock
import tempfile
import shutil
import sh
Expand Down
2 changes: 1 addition & 1 deletion test/segments_test/git_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import unittest
from contextlib import ExitStack

import mock
from unittest import mock
import tempfile
import shutil
import sh
Expand Down
2 changes: 1 addition & 1 deletion test/segments_test/hg_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import unittest
from contextlib import ExitStack

import mock
from unittest import mock
import tempfile
import shutil
import sh
Expand Down
2 changes: 1 addition & 1 deletion test/segments_test/hostname_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import unittest
import mock
from unittest import mock
import powerline_shell.segments.hostname as hostname
from powerline_shell.themes.default import Color
from argparse import Namespace
Expand Down
2 changes: 1 addition & 1 deletion test/segments_test/svn_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import shutil
from contextlib import ExitStack

import mock
from unittest import mock
import sh
import powerline_shell.segments.svn as svn
from ..testing_utils import dict_side_effect_fn
Expand Down
2 changes: 1 addition & 1 deletion test/segments_test/uptime_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import unittest
import mock
from unittest import mock
import powerline_shell.segments.uptime as uptime

test_cases = {
Expand Down

0 comments on commit 61e7e9a

Please sign in to comment.