Skip to content

Commit d37db33

Browse files
committed
Rearange imports in tests
Make imports PEP8 compliant in tests
1 parent 0fb5f6a commit d37db33

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

tests/test_scrape.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import unittest
22
import tempfile
33
import os
4-
from uiplib.scrape import scrape
4+
55
from bs4 import BeautifulSoup
66

7+
from uiplib import scrape
8+
79

810
class ScrapeTest(unittest.TestCase):
911

tests/test_settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import unittest
22
from unittest.mock import patch
3+
34
from uiplib import settings
45

56

tests/test_wallpaper.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import unittest
2-
from uiplib.Wallpaper import Wallpaper
32
import tempfile
43
import sys
4+
55
import pytest
66

7+
from uiplib.Wallpaper import Wallpaper
8+
79

810
class WallpaperTest(unittest.TestCase):
911

uiplib/scrape.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def get_images(url, directory, count, appObj=None):
162162
appObj.update_ui()
163163

164164

165-
def download(website, directory, count, appObj=None): # pragma : no cover
165+
def download(website, directory, count, appObj=None): # pragma: no cover
166166
"""Download images from the Internet."""
167167
print('Downloading images..')
168168
try:

0 commit comments

Comments
 (0)