refactor diff and show to use new table ui and new data structure (#5872)

* use new table data structure for diff and show

* fix params diff showing changes

* metrics show: use default precision

* skip precision format for exp diff params

* exp diff: separate tables in --quiet mode

* change precision to signify significants digits

changed f specifier to g, so that we show significant digits
instead of fractional digits. This does changes how precision
worked for metrics/params diff/show.
This commit is contained in:
Saugat Pachhai
2021-04-27 11:05:52 +05:45
committed by GitHub
parent 0860e419e4
commit f38d163d5c
11 changed files with 792 additions and 675 deletions
+3 -1
View File
@@ -192,10 +192,12 @@ class TestDvc(TestDvcFixture, TestCase):
TestDvcFixture.__init__(self)
TestCase.__init__(self, methodName)
self._caplog = None
self._capsys = None
@pytest.fixture(autouse=True)
def inject_fixtures(self, caplog):
def inject_fixtures(self, caplog, capsys):
self._caplog = caplog
self._capsys = capsys
class TestDvcGit(TestDvcGitFixture, TestCase):