Fix tests

This commit is contained in:
Lucidiot 2018-07-11 17:16:25 +02:00
parent 44b4c5fd33
commit 4326d7dbf9
2 changed files with 4 additions and 3 deletions

View File

@ -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",

View File

@ -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):