1. 17 Dec, 2020 2 commits
    • Georges Racinet's avatar
      utils.hg: higher level assert_matching_changesets helper · d586b25aa4d2
      Georges Racinet authored
      It is based on the previously introduced `changeset_extracts()`
      and has options for fields of comparison and order.
      
      The hope is that it will make failures appearing on tests
      easier to understand, especially to (relative) newcomers.
      d586b25aa4d2
    • Georges Racinet's avatar
      utils.hg: high level method to extract changesets info · 8fa3f8406c79
      Georges Racinet authored
      This will be, I hope, more readable than the pervasive
      "log with `:` separated template / split" pattern
      we've been using.
      
      Especially, I expect failures to be more readily understandable.
      
      Using namedtuples for the extracts so that it's admissible in
      dicts and sets. The drawback is that we have to return the class
      as well, for litteral comparison. Each call gives a new class
      but instances of two such namedtuple classes are comparable.
      8fa3f8406c79
  2. 06 Oct, 2020 1 commit
  3. 22 May, 2020 1 commit
    • Georges Racinet's avatar
      hg: allow passing preencoded command arguments · 3a0317f9aa04
      Georges Racinet authored
      This will be necessary for tests about content that's
      not encoded with the current default encoding.
      
      Because of this, the output might not be utf-8 either. For now,
      just avoiding an error is good enough.
      3a0317f9aa04
  4. 18 May, 2020 1 commit
  5. 13 Mar, 2020 1 commit
  6. 19 Feb, 2020 2 commits
    • Georges Racinet's avatar
      hg: set config before cloning · ba9e2db77558
      Georges Racinet authored
      Some tests require the extensions to be active. This happens
      for instance with `test_prune_inside_topic`, which won't receive
      the obsmarkers if evolve is not activated in the first place.
      
      Up to now this has been fulfilled by some surrounding configuration,
      but that's about to change.
      ba9e2db77558
    • Georges Racinet's avatar
      hg: always activate the rebase extension · ed938e8ac17c
      Georges Racinet authored
      this is necessary to have the `hg rebase` command.
      Up to now, tests using rebase have worked because
      of configuration attached to the user launching the tests,
      but that's going to change soon.
      ed938e8ac17c
  7. 15 Feb, 2020 1 commit
  8. 04 Jan, 2020 1 commit
    • Georges Racinet's avatar
      hg: making sure we have an username · 9edcbae1faf0
      Georges Racinet authored
      Don't know why I haven't been bitten by this one before testing
      on source install, but it doesn't matter, it's best to force
      a neutral username on our test commits anyway
      9edcbae1faf0
  9. 17 Nov, 2019 1 commit
  10. 17 Sep, 2019 1 commit
    • Georges Racinet's avatar
      Switched Heptapod tests to Python3 · a6796784bc7f
      Georges Racinet authored
      apart from the usual str/bytes dance in subprocesses and I/O,
      (we can assume that hg and docker exec outputs are essentially
      ASCII, can be handled by the default UTF-8 codec or that we'd
      write something dedicated otherwise),
      the notable thing is that we need inner fixture generator to
      become a context manager, because something in teardowns catches
      StopIteration too early and raises RuntimeError. This is cleaner
      anyway.
      a6796784bc7f
  11. 10 Aug, 2019 1 commit
  12. 19 Jul, 2019 1 commit
  13. 03 Jul, 2019 1 commit