BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etsy-python
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
etsy-python
Commits
87f35cf0
Commit
87f35cf0
authored
Jan 27, 2011
by
Dan McKinley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removing v1 code, fixing core tests
parent
8fd2eff2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
21 deletions
+1
-21
__init__.py
etsy/__init__.py
+0
-1
_v1.py
etsy/_v1.py
+0
-8
test_core.py
test/test_core.py
+1
-1
test_v1.py
test/test_v1.py
+0
-11
No files found.
etsy/__init__.py
View file @
87f35cf0
from
_v1
import
EtsyV1
,
EtsyV1
from
_v2
import
EtsyV2
as
Etsy
from
etsy_env
import
EtsyEnvSandbox
,
EtsyEnvProduction
...
...
etsy/_v1.py
deleted
100644 → 0
View file @
8fd2eff2
from
__future__
import
with_statement
from
_core
import
API
class
EtsyV1
(
API
):
api_url
=
'http://beta-api.etsy.com/v1'
api_version
=
'v1'
test/test_core.py
View file @
87f35cf0
...
...
@@ -40,7 +40,7 @@ class MockAPI(API):
'description'
:
'no pos arguments'
}]
def
_get_url
(
self
,
url
):
def
_get_url
(
self
,
url
,
http_method
,
content_type
,
body
):
return
'{ "count": 1, "results": [3] }'
...
...
test/test_v1.py
deleted
100644 → 0
View file @
8fd2eff2
from
__future__
import
with_statement
from
unittest
import
TestCase
from
etsy
import
EtsyV1
as
Etsy
class
V1Tests
(
TestCase
):
def
test_v1_api_works
(
self
):
api
=
Etsy
()
x
=
api
.
getUserDetails
(
user_id
=
'mcfunley'
)
self
.
assertEqual
(
x
[
0
][
'user_name'
],
'mcfunley'
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment