Fix tests
This commit is contained in:
parent
44b4c5fd33
commit
4326d7dbf9
1
setup.py
1
setup.py
|
@ -29,7 +29,6 @@ setup(
|
|||
"Natural Language :: English",
|
||||
"Intended Audience :: Developers",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 3.2",
|
||||
"Programming Language :: Python :: 3.3",
|
||||
"Programming Language :: Python :: 3.4",
|
||||
"Programming Language :: Python :: 3.5",
|
||||
|
|
|
@ -1,15 +1,17 @@
|
|||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from abc import ABC, abstractstaticmethod
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
|
||||
class UsdaObject(ABC):
|
||||
"""Describes any kind of USDA API result."""
|
||||
|
||||
@abstractstaticmethod
|
||||
@staticmethod
|
||||
@abstractmethod
|
||||
def from_response_data(response_data):
|
||||
"""Generate an object from JSON response data."""
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
class Measure(UsdaObject):
|
||||
|
|
Reference in New Issue
Block a user