From afa4f9ce456564a5d0391bb586a88f9e87ac1967 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 10 Feb 2021 13:40:24 +0100 Subject: [PATCH] fixing tests --- CHANGELOG.md | 2 +- ereuse_devicehub/dummy/dummy.py | 10 +++++----- tests/test_device.py | 1 - 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 81e3870f..2e3c4d45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,7 +18,7 @@ ml). - [addend] #102 adding endpoint for download metrics - [bugfix] #100 fixing bug of scheme live - [bugfix] #101 fixing bug when 2 users have one device and launch one live -- [changes] #114 clean blockchein of deliverynote +- [changes] #114 clean blockchain of all models - [remove] #114 remove proof system ## [1.0.3-beta] diff --git a/ereuse_devicehub/dummy/dummy.py b/ereuse_devicehub/dummy/dummy.py index 162ccf56..376ccd1b 100644 --- a/ereuse_devicehub/dummy/dummy.py +++ b/ereuse_devicehub/dummy/dummy.py @@ -65,10 +65,10 @@ class Dummy: with click_spinner.spinner(): out = runner.invoke('org', 'add', *self.ORG).output org_id = json.loads(out)['id'] - user1 = self.user_client('user@dhub.com', '1234', 'user1', '0xC79F7fE80B5676fe38D8187b79d55F7A61e702b2') - user2 = self.user_client('user2@dhub.com', '1234', 'user2', '0x56EbFdbAA98f52027A9776456e4fcD5d91090818') - user3 = self.user_client('user3@dhub.com', '1234', 'user3', '0xF88618956696aB7e56Cb7bc87d9848E921C4FDaA') - user4 = self.user_client('user4@dhub.com', '1234', 'user4', '0x37be35ae7eced44ca25e4683e98425fc7830a8a5') + user1 = self.user_client('user@dhub.com', '1234', 'user1') + user2 = self.user_client('user2@dhub.com', '1234', 'user2') + user3 = self.user_client('user3@dhub.com', '1234', 'user3') + user4 = self.user_client('user4@dhub.com', '1234', 'user4') # todo put user's agent into Org for id in self.TAGS: @@ -188,7 +188,7 @@ class Dummy: # For netbook: to preapre -> torepair -> to dispose -> disposed print('⭐ Done.') - def user_client(self, email: str, password: str, name: str: + def user_client(self, email: str, password: str, name: str): user = User(email=email, password=password) user.individuals.add(Person(name=name)) diff --git a/tests/test_device.py b/tests/test_device.py index fa6de215..851698fb 100644 --- a/tests/test_device.py +++ b/tests/test_device.py @@ -126,7 +126,6 @@ def test_physical_properties(): assert pc.physical_properties == { 'chassis': ComputerChassis.Tower, 'amount': 0, - 'ethereum_address': None, 'manufacturer': 'bar', 'model': 'foo', 'receiver_id': None,