Merge pull request #63 from NandaScott/develop

Develop
This commit is contained in:
Nanda Scott 2021-03-04 23:12:12 -05:00 committed by GitHub
commit 8610e077b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 84 additions and 1 deletions

View File

@ -251,6 +251,16 @@ The related id of the card art
Returns: Returns:
string string
```
---
### `image_status()`
```
Provides insight to the status of the images of the card.
Returns:
string: An enum of 'missing', 'placeholder', 'lowres', 'highres_scan'
``` ```
--- ---
### `image_uris()` ### `image_uris()`

View File

@ -248,6 +248,16 @@ The related id of the card art
Returns: Returns:
string string
```
---
### `image_status()`
```
Provides insight to the status of the images of the card.
Returns:
string: An enum of 'missing', 'placeholder', 'lowres', 'highres_scan'
``` ```
--- ---
### `image_uris()` ### `image_uris()`

View File

@ -251,6 +251,16 @@ The related id of the card art
Returns: Returns:
string string
```
---
### `image_status()`
```
Provides insight to the status of the images of the card.
Returns:
string: An enum of 'missing', 'placeholder', 'lowres', 'highres_scan'
``` ```
--- ---
### `image_uris()` ### `image_uris()`

View File

@ -251,6 +251,16 @@ The related id of the card art
Returns: Returns:
string string
```
---
### `image_status()`
```
Provides insight to the status of the images of the card.
Returns:
string: An enum of 'missing', 'placeholder', 'lowres', 'highres_scan'
``` ```
--- ---
### `image_uris()` ### `image_uris()`

View File

@ -251,6 +251,16 @@ The related id of the card art
Returns: Returns:
string string
```
---
### `image_status()`
```
Provides insight to the status of the images of the card.
Returns:
string: An enum of 'missing', 'placeholder', 'lowres', 'highres_scan'
``` ```
--- ---
### `image_uris()` ### `image_uris()`

View File

@ -253,6 +253,16 @@ The related id of the card art
Returns: Returns:
string string
```
---
### `image_status()`
```
Provides insight to the status of the images of the card.
Returns:
string: An enum of 'missing', 'placeholder', 'lowres', 'highres_scan'
``` ```
--- ---
### `image_uris()` ### `image_uris()`

View File

@ -249,6 +249,16 @@ The related id of the card art
Returns: Returns:
string string
```
---
### `image_status()`
```
Provides insight to the status of the images of the card.
Returns:
string: An enum of 'missing', 'placeholder', 'lowres', 'highres_scan'
``` ```
--- ---
### `image_uris()` ### `image_uris()`

View File

@ -749,3 +749,13 @@ class CardsObject(FoundationObject):
return self.scryfallJson['preview'][key] return self.scryfallJson['preview'][key]
return self.scryfallJson['preview'] return self.scryfallJson['preview']
def image_status(self):
"""Provides insight to the status of the images of the card.
Returns:
string: An enum of 'missing', 'placeholder', 'lowres', 'highres_scan'
"""
super(CardsObject, self)._checkForKey('image_status')
return self.scryfallJson['image_status']

View File

@ -3,7 +3,7 @@ from setuptools import setup
setup( setup(
name='scrython', name='scrython',
packages=['scrython', 'scrython.cards', 'scrython.rulings', 'scrython.catalog', 'scrython.sets', 'scrython.symbology', 'scrython.bulk_data'], packages=['scrython', 'scrython.cards', 'scrython.rulings', 'scrython.catalog', 'scrython.sets', 'scrython.symbology', 'scrython.bulk_data'],
version='1.8.1', version='1.9.0',
description='A wrapper for using the Scryfall API.', description='A wrapper for using the Scryfall API.',
long_description='https://github.com/NandaScott/Scrython/blob/master/README.md', long_description='https://github.com/NandaScott/Scrython/blob/master/README.md',
url='https://github.com/NandaScott/Scrython', url='https://github.com/NandaScott/Scrython',

View File

@ -212,6 +212,9 @@ class TestCardObjects(unittest.TestCase):
self.assertIsInstance(preview_check.preview(), dict) self.assertIsInstance(preview_check.preview(), dict)
self.assertIsInstance(preview_check.preview('source'), str) self.assertIsInstance(preview_check.preview('source'), str)
def test_image_status(self):
self.assertIsInstance(non_online_card.image_status(), str)
class TestAutocomplete(unittest.TestCase): class TestAutocomplete(unittest.TestCase):
def test_object(self): def test_object(self):