Giter Club home page Giter Club logo

Comments (3)

pkestene avatar pkestene commented on May 25, 2024

by the way, if I try to run pytest, one test is failing :

======================================================================== test session starts ========================================================================
platform linux -- Python 3.8.3, pytest-5.4.1, py-1.8.1, pluggy-0.13.1 -- /home/pkestene/local/miniconda3/envs/eclairs/bin/python
...
tests/core/test_core_name.py::test_rename_pattern PASSED                                                                                                      [ 11%]
tests/core/test_core_page.py::test_pages FAILED                                                                                                               [ 11%]Coverage.py warning: No data was collected. (no-data-collected)


============================================================================= FAILURES ==============================================================================
____________________________________________________________________________ test_pages _____________________________________________________________________________

    def test_pages():
        paths = [os.path.normpath(os.path.join(pheasant.__file__, "../../tests/docs/docs"))]
        pages = Pages(paths, "py,md")
        pages.collect()
    
>       d = pages[0].to_dict()

tests/core/test_core_page.py:12: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = Pages(paths=['/home/pkestene/.local/lib/python3.8/site-packages/pheasant-2.5.4-py3.8.egg/tests/docs/docs'], ext='py,md', _pages=[]), index = 0

    def __getitem__(self, index):
>       return self._pages[index]
E       IndexError: list index out of range

/home/pkestene/.local/lib/python3.8/site-packages/pheasant-2.5.4-py3.8.egg/pheasant/core/page.py:112: IndexError

from pheasant.

daizutabi avatar daizutabi commented on May 25, 2024

Hi,

MkDocs changed its plugin signature in Version 1.1.1, so please update MkDocs to Version 1.1.1 or later, if possible.

I'm nor sure about Pytest failing but at least on Travis, the test was passed here (Python 3.8/Linux)

from pheasant.

pkestene avatar pkestene commented on May 25, 2024

ok, thank you.

  • with mkdocs 1.1.1 it's ok; I don't see any requiment upon mkdocs >= 1.1.1 in pheasant sources, maybe it could be added ?
  • the unit test is still failing...

from pheasant.

Related Issues (11)

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.