Skip to content

Commit

Permalink
offline tests
Browse files Browse the repository at this point in the history
  • Loading branch information
boguta_m committed Dec 10, 2014
1 parent e936cda commit bdb7e9c
Show file tree
Hide file tree
Showing 41 changed files with 13,953 additions and 206 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.idea/
*.pyc
shiba2/.idea
nosetests.cfg
nosetests.cfg

12 changes: 12 additions & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# file GENERATED by distutils, do NOT edit
setup.cfg
setup.py
Shiba/__init__.py
Shiba/accountingmanagement.py
Shiba/inventorymanagement.py
Shiba/marketplacemanagement.py
Shiba/salesmanagement.py
Shiba/shibaconnection.py
Shiba/shibaexceptions.py
Shiba/shibaresponseobject.py
Shiba/shibatools.py
12 changes: 12 additions & 0 deletions Shiba.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Metadata-Version: 1.1
Name: Shiba
Version: 1.1.1.01
Summary: A Python API for PriceMinister WebServices
Home-page: https://github.com/ShibaAPI/shiba
Author: Maxime Boguta
Author-email: [email protected]
License: UNKNOWN
Download-URL: https://github.com/ShibaAPI/shiba/tarball/1.1.01
Description: UNKNOWN
Keywords: api,priceminister,python,webservices
Platform: UNKNOWN
17 changes: 17 additions & 0 deletions Shiba.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
README.rst
setup.cfg
setup.py
Shiba.egg-info/PKG-INFO
Shiba.egg-info/SOURCES.txt
Shiba.egg-info/dependency_links.txt
Shiba.egg-info/requires.txt
Shiba.egg-info/top_level.txt
shiba/__init__.py
shiba/accountingmanagement.py
shiba/inventorymanagement.py
shiba/marketplacemanagement.py
shiba/salesmanagement.py
shiba/shibaconnection.py
shiba/shibaexceptions.py
shiba/shibaresponseobject.py
shiba/shibatools.py
1 change: 1 addition & 0 deletions Shiba.egg-info/dependency_links.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

3 changes: 3 additions & 0 deletions Shiba.egg-info/requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
requests
xmltodict
lxml
1 change: 1 addition & 0 deletions Shiba.egg-info/top_level.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
shiba
Binary file added gh-pages/doctrees/Getting started.doctree
Binary file not shown.
Binary file added gh-pages/doctrees/Shiba.doctree
Binary file not shown.
Binary file added gh-pages/doctrees/environment.pickle
Binary file not shown.
Binary file added gh-pages/doctrees/index.doctree
Binary file not shown.
1 change: 1 addition & 0 deletions gh-pages/html
Submodule html added at 59f724
8 changes: 8 additions & 0 deletions tests/Assets/note.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Edited by XMLSpy -->
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
12 changes: 12 additions & 0 deletions tests/Assets/quota_exceeded_message.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<errorresponse xmlns="http://pmcdn.priceminister.com/res/schema/error" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pmcdn.priceminister.com/res/schema/error http://pmcdn.priceminister.com/res/schema/error/error.xsd">
<error>
<type>Sender</type>
<code>InvalidUserRights</code>
<message>Quota exceeded.</message>
<details>
<detail>
<![CDATA[ You have exceeded the maximum number of requests per hour. Please contact [email protected] for more information. ]]>
</detail>
</details>
</error>
</errorresponse>
11 changes: 11 additions & 0 deletions tests/Assets/sample_accept_sale.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<saleacceptanceresult xmlns="http://www.priceminister.com/sales_ws/saleacceptance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.priceminister.com/sales_ws/saleacceptance http://www.priceminister.com/res/co/0/www/www/56991/2010-09-20sale_acceptance.xsd">
<request>
<user>vendeur</user>
<version>2010-09-20</version>
<itemid>1046920728</itemid>
</request>
<response>
<lastversion>2010-09-20</lastversion>
<status>Refused</status>
</response>
</saleacceptanceresult>
13 changes: 13 additions & 0 deletions tests/Assets/sample_cancelitem.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<cancelitemresult xmlns="http://www.priceminister.com/res/schema/cancelitem" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.priceminister.com/res/schema/cancelitem http://www.priceminister.com/res/schema/cancelitem/cancelitem.2011-02-02.xsd">
<request>
<version>2011-02-02</version>
<user>vendeur</user>
<itemid>1510361129</itemid>
<comment><![CDATA[je souhaite annuler la vente]]></comment>
</request>
<response>
<lastversion>2011-02-02</lastversion>
<status>CANCELLED</status>
</response>
</cancelitemresult>
13 changes: 13 additions & 0 deletions tests/Assets/sample_confirmpreorder.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<confirmpreorder xmlns="http://pmcdn.priceminister.com/res/schema/confirmpreorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pmcdn.priceminister.com/res/schema/confirmpreorder http://pmcdn.priceminister.com/res/schema/confirmpreorder/confirmpreorder.2013-01-09.xsd">
<request>
<version>2013-01-09</version>
<user>login</user>
<advertid>601047302</advertid>
<stock>1</stock>
</request>
<response>
<lastversion>2013-01-09</lastversion>
<statut>OK : no remaining item(s)</statut>
</response>
</confirmpreorder>
13 changes: 13 additions & 0 deletions tests/Assets/sample_contactus.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<contactusaboutitemresult>
<request>
<version>xxxx-xx-xx</version>
<user>vendeur</user>
<itemid>151031130</itemid>
<mailparentid>2890097599</mailparentid>
<content>bonjour voici un message</content>
</request>
<response>
<lastversion>xxxx-xx-xx</lastversion>
<status>SENT</status>
</response>
</contactusaboutitemresult>
12 changes: 12 additions & 0 deletions tests/Assets/sample_contactuser.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<contactuseraboutitemresult>
<request>
<version>2011-02-02</version>
<user>vendeur</user>
<itemid>1510313528</itemid>
<content>message a mon acheteur : voici le numéro de colis 123132</content>
</request>
<response>
<lastversion>2011-02-02</lastversion>
<status>SENT</status>
</response>
</contactuseraboutitemresult>
Loading

0 comments on commit bdb7e9c

Please sign in to comment.