mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-16 22:10:26 +00:00
Remove str_text from tests/
This commit is contained in:
parent
28f4587dfa
commit
71eaf9a982
2 changed files with 4 additions and 6 deletions
|
|
@ -22,7 +22,6 @@ import pytest
|
|||
from contextlib import contextmanager
|
||||
from functools import lru_cache, wraps
|
||||
from linkcheck import LinkCheckerInterrupt
|
||||
from builtins import str as str_text
|
||||
|
||||
|
||||
basedir = os.path.dirname(__file__)
|
||||
|
|
@ -259,8 +258,8 @@ def get_file(filename=None):
|
|||
"""
|
||||
directory = os.path.join("tests", "checker", "data")
|
||||
if filename:
|
||||
return str_text(os.path.join(directory, filename))
|
||||
return str_text(directory)
|
||||
return os.path.join(directory, filename)
|
||||
return directory
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
|||
|
|
@ -20,15 +20,14 @@ Test config parsing.
|
|||
import unittest
|
||||
import os
|
||||
import linkcheck.configuration
|
||||
from builtins import str as str_text
|
||||
|
||||
|
||||
def get_file(filename=None):
|
||||
"""Get file name located within 'data' directory."""
|
||||
directory = os.path.join("tests", "configuration", "data")
|
||||
if filename:
|
||||
return str_text(os.path.join(directory, filename))
|
||||
return str_text(directory)
|
||||
return os.path.join(directory, filename)
|
||||
return directory
|
||||
|
||||
|
||||
class TestConfig(unittest.TestCase):
|
||||
|
|
|
|||
Loading…
Reference in a new issue