diff --git a/batchBrands.py b/batchBrands.py index f7f20ee..a0c7560 100644 --- a/batchBrands.py +++ b/batchBrands.py @@ -27,7 +27,7 @@ def test(): } } } - req = Request('POST', 'http://localhost/api/v1.0/show-case/batch-brands', json=data, auth=('qwe', 'qwe')) + req = Request('POST', 'https://new2.spavto96.ru/api/v1.0/show-case/batch-brands', json=data, auth=('qwe', 'qwe')) prepped = req.prepare() resp = s.send(prepped) print(resp.status_code) diff --git a/batchGroups.py b/batchGroups.py index 388a5e6..670be8d 100644 --- a/batchGroups.py +++ b/batchGroups.py @@ -25,7 +25,7 @@ def test(): } } } - req = Request('POST', 'http://localhost/api/v1.0/show-case/batch-groups', json=data, auth=('qwe', 'qwe')) + req = Request('POST', 'https://new2.spavto96.ru/api/v1.0/show-case/batch-groups', json=data, auth=('qwe', 'qwe')) prepped = req.prepare() resp = s.send(prepped) print(resp.status_code) diff --git a/batchModels.py b/batchModels.py index 199c73d..d2251a9 100644 --- a/batchModels.py +++ b/batchModels.py @@ -40,7 +40,7 @@ def test(): }, } } - req = Request('POST', 'http://localhost/api/v1.0/show-case/batch-models', json=data, auth=('qwe', 'qwe')) + req = Request('POST', 'https://new2.spavto96.ru/api/v1.0/show-case/batch-models', json=data, auth=('qwe', 'qwe')) prepped = req.prepare() resp = s.send(prepped) print(resp.status_code) diff --git a/batchPictures.py b/batchPictures.py index 9c1ae64..28f1f08 100644 --- a/batchPictures.py +++ b/batchPictures.py @@ -14,7 +14,7 @@ def test(): 'id': id, 'file_name': id_generator(16) + '.jpg', } - req = Request('POST', 'http://localhost/api/v1.0/show-case/picture', json=data, auth=('qwe', 'qwe')) + req = Request('POST', 'https://new2.spavto96.ru/api/v1.0/show-case/picture', json=data, auth=('qwe', 'qwe')) prepped = req.prepare() resp = s.send(prepped) print(resp.status_code) diff --git a/batchProducts.py b/batchProducts.py index dd01249..7cac1ae 100644 --- a/batchProducts.py +++ b/batchProducts.py @@ -41,7 +41,7 @@ def test(): 3: get_data() } } - req = Request('POST', 'http://localhost/api/v1.0/show-case/batch-products', json=data, auth=('qwe', 'qwe')) + req = Request('POST', 'https://new2.spavto96.ru/api/v1.0/show-case/batch-products', json=data, auth=('qwe', 'qwe')) prepped = req.prepare() resp = s.send(prepped) print(resp.status_code) diff --git a/brand.py b/brand.py index 99553ad..36e544e 100644 --- a/brand.py +++ b/brand.py @@ -18,7 +18,7 @@ def test(): 'picture_id': 'picture_75g36ayxk9yvl8lz', 'type': 10, } - req = Request('POST', 'http://localhost/api/v1.0/show-case/brand', json=data, auth=('qwe', 'qwe')) + req = Request('POST', 'https://new2.spavto96.ru/api/v1.0/show-case/brand', json=data, auth=('qwe', 'qwe')) prepped = req.prepare() resp = s.send(prepped) print(resp.status_code) diff --git a/group.py b/group.py index c4a6c39..3600a94 100644 --- a/group.py +++ b/group.py @@ -16,7 +16,7 @@ def test(): 'url': id_generator(16), 'picture_src': id_generator(16) + '.jpg', } - req = Request('POST', 'http://localhost/api/v1.0/show-case/group', json=data, auth=('qwe', 'qwe')) + req = Request('POST', 'https://new2.spavto96.ru/api/v1.0/show-case/group', json=data, auth=('qwe', 'qwe')) prepped = req.prepare() resp = s.send(prepped) print(resp.status_code) diff --git a/model.py b/model.py index 52be3e5..0816518 100644 --- a/model.py +++ b/model.py @@ -19,7 +19,7 @@ def test(): 'brand_id': 'brand_rbmjh7flxc9zgr0r', 'picture_id': 'picture_75g36ayxk9yvl8lz', } - req = Request('POST', 'http://localhost/api/v1.0/show-case/model', json=data, auth=('qwe', 'qwe')) + req = Request('POST', 'https://new2.spavto96.ru/api/v1.0/show-case/model', json=data, auth=('qwe', 'qwe')) prepped = req.prepare() resp = s.send(prepped) print(resp.status_code) diff --git a/picture.py b/picture.py index fe39994..f35c0ad 100644 --- a/picture.py +++ b/picture.py @@ -21,7 +21,7 @@ def test(): } } } - req = Request('POST', 'http://localhost/api/v1.0/show-case/batch-pictures', json=data, auth=('qwe', 'qwe')) + req = Request('POST', 'https://new2.spavto96.ru/api/v1.0/show-case/batch-pictures', json=data, auth=('qwe', 'qwe')) prepped = req.prepare() resp = s.send(prepped) print(resp.status_code) diff --git a/product.py b/product.py index 97f6cb0..f975e6a 100644 --- a/product.py +++ b/product.py @@ -31,7 +31,7 @@ def test(): 'right': 0, } } - req = Request('POST', 'http://localhost/api/v1.0/show-case/product', json=data, auth=('qwe', 'qwe')) + req = Request('POST', 'https://new2.spavto96.ru/api/v1.0/show-case/product', json=data, auth=('qwe', 'qwe')) prepped = req.prepare() resp = s.send(prepped) print(resp.status_code)