Coder Social home page Coder Social logo

Comments (6)

gbastien avatar gbastien commented on June 21, 2024 1

OK, this is due to https://github.com/eea/eea.facetednavigation/blob/master/eea/facetednavigation/tests/test_doctests.py#L25

It should be
got = re.sub("u'(.*?)'", "'\\1'", got)
and not
got = re.sub("u'(.*?)'", "'\\1'", want)

I will propose a separated PR...

from eea.facetednavigation.

avoinea avatar avoinea commented on June 21, 2024

@gbastien Sounds good.

I would still keep the purge at criteria level for backward compatibility. Thus:

  1. If you have <criteria purge="True"> then the old behavior will apply (all criterions are erased before import)
  2. Otherwise each <criterion purge="True"> will replace existing ones.

from eea.facetednavigation.

gbastien avatar gbastien commented on June 21, 2024

@avoinea

yes sure still useful at the <criteria> level, just need to define it at the <criterion> level.

Actually we apply a little XML file just redefining one single <criterion> and leaving others untouched.

I will propose a PR soon.

Thank you for follow up!

Gauthier

from eea.facetednavigation.

gbastien avatar gbastien commented on June 21, 2024

Hi @avoinea

working on this issue and adding tests to exportimport.txt, I could not make doctest fail, even when writing wrong things!

Looking at the doctest setup, it is due to the checker=Py23DocChecker() defined in test_doctests.py while configuring the exportimport.txt doctest.

You may test, if you remove the checker=Py23DocChecker() and run bin/test --test exportimport.txt, you have failing tests.

So I think that may be the case with other doctests as well...

So I do not know why this is failing and how to fix this...

Gauthier

from eea.facetednavigation.

gbastien avatar gbastien commented on June 21, 2024

Hi @avoinea

so under py2, you may write anything wrong in a doctest, it does not fail.

But maybe this will fail in your jenkins while running test on py3?

from eea.facetednavigation.

gbastien avatar gbastien commented on June 21, 2024

Fixed with #205

from eea.facetednavigation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.