Ver Fonte

[fb] Changed assert target stat from numRows to numFiles (#1178)

Co-authored-by: Romain Rigaux <romain.rigaux@gmail.com>
Sungpeo Kook há 5 anos atrás
pai
commit
aaaa2a2032
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      apps/beeswax/src/beeswax/tests.py

+ 2 - 1
apps/beeswax/src/beeswax/tests.py

@@ -1936,7 +1936,8 @@ for x in sys.stdin:
       # Retrieve stats before analyze
       resp = self.client.get(reverse('beeswax:get_table_stats', kwargs={'database': self.db_name, 'table': 'test'}))
       stats = json.loads(resp.content)['stats']
-      assert_true(any([stat for stat in stats if stat['data_type'] == 'numRows' and stat['comment'] == '0']), resp.content)
+      assert_true(any([stat for stat in stats if stat['data_type'] == 'numFiles' and stat['comment'] == '1']), resp.content)
+
 
       resp = self.client.get(reverse('beeswax:get_table_stats', kwargs={'database': self.db_name, 'table': 'test', 'column': 'foo'}))
       stats = json.loads(resp.content)['stats']