Skip to content

Commit

Permalink
testing fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DolphDev committed Sep 22, 2021
1 parent 9bf3248 commit 60cde94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
9 changes: 2 additions & 7 deletions nationstates/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,13 +484,8 @@ def _determine_api(self, chamber):

@property
def nations(self):
resp = self._auto_shard("nations")
return tuple(self.api_mother.nation(x) for x in resp.split(":"))

@property
def regions(self):
resp = self._auto_shard("regions")
return tuple(self.api_mother.region(x) for x in resp.split(":"))
resp = self._auto_shard("members")
return tuple(self.api_mother.nation(x) for x in resp.split(","))

class Telegram(API_WRAPPER):
api_name = TelegramAPI.api_name
Expand Down
3 changes: 1 addition & 2 deletions tests/test_call.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ def test_nation_region_calls(self):
api.world().nations
api.world().regions
api.wa('0').nations
api.wa('0').regions

except Exception as Err:
self.fail(Err)
Expand Down Expand Up @@ -299,7 +298,7 @@ def test_private_nation(self):

def test_exists(self):
assert fake_nation.exists() is False
assert fake_region.exists is False
assert fake_region.exists() is False
assert test_auth_nation.exists()
assert fake_nation.exists() is False
assert test_auth_nation.region.exists()
Expand Down

0 comments on commit 60cde94

Please sign in to comment.