Skip to content

Commit efbf7ec

Browse files
committedFeb 27, 2020
changing from local library file to the pypi module
1 parent 1efcc4d commit efbf7ec

File tree

7 files changed

+5
-348
lines changed

7 files changed

+5
-348
lines changed
 

‎Library/api.py

Lines changed: 0 additions & 139 deletions
This file was deleted.

‎Library/images.py

Lines changed: 0 additions & 82 deletions
This file was deleted.

‎Library/store.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

‎Library/variable.py

Lines changed: 0 additions & 111 deletions
This file was deleted.

‎Tests/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import pytest
33
import glob
4-
from Library.store import Store
4+
from snapyrest.store import Store
55

66

77
@pytest.fixture(autouse=True)
@@ -36,6 +36,7 @@ def pytest_configure(config):
3636
Store.static_data_path = os.path.dirname(os.path.abspath(__file__)).replace("/Tests", "") + '/Data/TestData/'
3737
Store.dynamic_data_path = os.path.dirname(os.path.abspath(__file__)).replace("/Tests", "") + '/Data/DynamicData/'
3838
root_dir = os.path.dirname(os.path.abspath(__file__)).replace("/Tests", "")
39+
Store.root_path = root_dir
3940
# Clearing the old screenshots from the location.
4041
config_path = root_dir + '/reports/images/*.png'
4142
for CleanUp in glob.glob(config_path):

‎Tests/test_sample.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import allure
22
import pytest
3-
from Library.api import Api
4-
from Library.images import Img
3+
from snapyrest.api import Api
4+
from snapyrest.images import Img
55

66

77
@allure.feature("Sample get request")

‎requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ pyyaml==5.3
1212
flake8==3.7.9
1313
imgcompare==2.0.1
1414
diffimg==0.2.3
15+
snapyrest==0.1.1

0 commit comments

Comments
 (0)
Please sign in to comment.