fix tests by changing serving dir (#652)

* fix tests by changing serving dir

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Madhur Tandon
2022-08-02 20:35:09 +05:30
committed by GitHub
parent 87e3b5b1dc
commit a4839db79a
2 changed files with 23 additions and 24 deletions

View File

@@ -1,15 +1,10 @@
"""All data required for testing examples"""
import os
import threading
from http.server import HTTPServer as SuperHTTPServer
from http.server import SimpleHTTPRequestHandler
from pathlib import Path
import pytest
my_path = Path.cwd() / "examples"
os.chdir(my_path)
class HTTPServer(SuperHTTPServer):
"""