Skip to content

Commit

Permalink
Modified tests and new README
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucino772 committed Sep 16, 2021
1 parent b909ba7 commit c8784fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
![Read the Docs](https://img.shields.io/readthedocs/pymojang?style=flat-square)
[![Read the Docs](https://img.shields.io/readthedocs/pymojang?style=flat-square)](https://pymojang.readthedocs.io/en/latest/)
![PyPI - Downloads](https://img.shields.io/pypi/dm/pymojang?style=flat-square)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pymojang?style=flat-square)

# Pymojang
Pymojang is a full wrapper arround de [Mojang API](https://wiki.vg/Mojang_API) and [Mojang Authentication API](https://wiki.vg/Authentication).
PyMojang is a full wrapper of the [Mojang API](https://wiki.vg/Mojang_API) and [Mojang Authentication API](https://wiki.vg/Authentication).
It also support the [Microsoft Authentication Scheme](https://wiki.vg/Microsoft_Authentication_Scheme).

## Installation

Expand Down
2 changes: 1 addition & 1 deletion tests/test_mojang.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def test_unexistent_names(self):

def test_existent_profile(self):
self.assertEqual(mojang.user('069a79f444e94726a5befca90e38aaf5'), UserProfile('Notch', '069a79f444e94726a5befca90e38aaf5', False, False, NameInfoList([NameInfo('Notch', None)]), Skin('http://textures.minecraft.net/texture/292009a4925b58f02c77dadc3ecef07ea4c7472f64e0fdc32ce5522489362680', 'classic'), None))
self.assertEqual(mojang.user('853c80ef3c3749fdaa49938b674adae6'), UserProfile('jeb_', '853c80ef3c3749fdaa49938b674adae6', False, False, NameInfoList([NameInfo('jeb_', None)]), Skin('http://textures.minecraft.net/texture/7fd9ba42a7c81eeea22f1524271ae85a8e045ce0af5a6ae16c6406ae917e68b5', 'classic'), Cape('http://textures.minecraft.net/texture/5786fe99be377dfb6858859f926c4dbc995751e91cee373468c5fbf4865e7151', None)))
self.assertEqual(mojang.user('853c80ef3c3749fdaa49938b674adae6'), UserProfile('jeb_', '853c80ef3c3749fdaa49938b674adae6', False, False, NameInfoList([NameInfo('jeb_', None)]), Skin('http://textures.minecraft.net/texture/7fd9ba42a7c81eeea22f1524271ae85a8e045ce0af5a6ae16c6406ae917e68b5', 'classic'), Cape('http://textures.minecraft.net/texture/9e507afc56359978a3eb3e32367042b853cddd0995d17d0da995662913fb00f7', None)))

def test_unexistent_profile(self):
self.assertEqual(mojang.user('069a79f444e94726a5befca90e38aaf6'), None)

0 comments on commit c8784fa

Please sign in to comment.