fixing tests

This commit is contained in:
Cayo Puigdefabregas 2021-02-10 13:40:24 +01:00
parent 72466003d0
commit afa4f9ce45
3 changed files with 6 additions and 7 deletions

View file

@ -18,7 +18,7 @@ ml).
- [addend] #102 adding endpoint for download metrics - [addend] #102 adding endpoint for download metrics
- [bugfix] #100 fixing bug of scheme live - [bugfix] #100 fixing bug of scheme live
- [bugfix] #101 fixing bug when 2 users have one device and launch one 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 - [remove] #114 remove proof system
## [1.0.3-beta] ## [1.0.3-beta]

View file

@ -65,10 +65,10 @@ class Dummy:
with click_spinner.spinner(): with click_spinner.spinner():
out = runner.invoke('org', 'add', *self.ORG).output out = runner.invoke('org', 'add', *self.ORG).output
org_id = json.loads(out)['id'] org_id = json.loads(out)['id']
user1 = self.user_client('user@dhub.com', '1234', 'user1', '0xC79F7fE80B5676fe38D8187b79d55F7A61e702b2') user1 = self.user_client('user@dhub.com', '1234', 'user1')
user2 = self.user_client('user2@dhub.com', '1234', 'user2', '0x56EbFdbAA98f52027A9776456e4fcD5d91090818') user2 = self.user_client('user2@dhub.com', '1234', 'user2')
user3 = self.user_client('user3@dhub.com', '1234', 'user3', '0xF88618956696aB7e56Cb7bc87d9848E921C4FDaA') user3 = self.user_client('user3@dhub.com', '1234', 'user3')
user4 = self.user_client('user4@dhub.com', '1234', 'user4', '0x37be35ae7eced44ca25e4683e98425fc7830a8a5') user4 = self.user_client('user4@dhub.com', '1234', 'user4')
# todo put user's agent into Org # todo put user's agent into Org
for id in self.TAGS: for id in self.TAGS:
@ -188,7 +188,7 @@ class Dummy:
# For netbook: to preapre -> torepair -> to dispose -> disposed # For netbook: to preapre -> torepair -> to dispose -> disposed
print('⭐ Done.') 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 = User(email=email, password=password)
user.individuals.add(Person(name=name)) user.individuals.add(Person(name=name))

View file

@ -126,7 +126,6 @@ def test_physical_properties():
assert pc.physical_properties == { assert pc.physical_properties == {
'chassis': ComputerChassis.Tower, 'chassis': ComputerChassis.Tower,
'amount': 0, 'amount': 0,
'ethereum_address': None,
'manufacturer': 'bar', 'manufacturer': 'bar',
'model': 'foo', 'model': 'foo',
'receiver_id': None, 'receiver_id': None,