Browse Source

py3port: test.py: add 'autosign_minimal' test

MMGen 6 years ago
parent
commit
d67c92e831
1 changed files with 20 additions and 8 deletions
  1. 20 8
      test/test.py

+ 20 - 8
test/test.py

@@ -1073,6 +1073,9 @@ cmd_group['ethdev'] = (
 cmd_group['autosign'] = (
 	('autosign', 'transaction autosigning (BTC,BCH,LTC,ETH,ETC)'),
 )
+cmd_group['autosign_minimal'] = (
+	('autosign_minimal', 'transaction autosigning (BTC,ETH,ETC)'),
+)
 
 cmd_group['ref_alt'] = (
 	('ref_addrfile_gen_eth',  'generate address file (ETH)'),
@@ -1183,6 +1186,11 @@ for a,b in cmd_group['autosign']:
 	cmd_list['autosign'].append(a)
 	cmd_data[a] = (18,b,[[[],18]])
 
+cmd_data['info_autosign_minimal'] = 'autosign_minimal',[18]
+for a,b in cmd_group['autosign_minimal']:
+	cmd_list['autosign_minimal'].append(a)
+	cmd_data[a] = (18,b,[[[],18]])
+
 cmd_data['info_ref_alt'] = 'altcoin reference files',[8]
 for a,b in cmd_group['ref_alt']:
 	cmd_list['ref_alt'].append(a)
@@ -2411,15 +2419,19 @@ class MMGenTestSuite(object):
 		os.unlink(f1)
 		cmp_or_die(hincog_offset,int(o))
 
+	def autosign_minimal(self,name):
+		return self.autosign(name,
+					coins=['btc','eth'],
+					txfiles=['btc','eth','erc20','etc'],
+					txcount=7)
+
 	# tests everything except device detection, mount/unmount
-	def autosign(self,name):
-
-		opts = ['--mountpoint='+cfg['tmpdir'],'--coins=btc,bch,ltc,eth']
-		txfiles = ('btc','bch','ltc','eth','erc20','etc')
-		txcount = 11
-# 		opts = ['--mountpoint='+cfg['tmpdir'],'--coins=btc,eth']
-# 		txfiles = ('btc','eth','erc20','etc')
-# 		txcount = 7
+	def autosign(   self,name,
+					coins=['btc','bch','ltc','eth'],
+					txfiles=['btc','bch','ltc','eth','erc20','etc'],
+					txcount=11):
+
+		opts = ['--mountpoint='+cfg['tmpdir'],'--coins='+','.join(coins)]
 
 		if skip_for_win(): return