Code Monkey home page Code Monkey logo

Comments (14)

Blind4Basics avatar Blind4Basics commented on August 27, 2024

do we agree to describe only v2? (saying that v1 still exists in old katas should be enough. Only PUs will be facing old codes to maintain anyway, I guess)

I'll begin with the reference manual.

from docs.

Blind4Basics avatar Blind4Basics commented on August 27, 2024

BTW, now that we're talking about it... Should we add my module forbidder to the test framework? That would require some work, but it's already in the wild in a lot of katas and it's spreading. And it has some flaws and it already became impossible to update it everywhere, since I don't know all the places... :/

(yeah, it's "a bit" off topic... x) )

from docs.

kazk avatar kazk commented on August 27, 2024

Yeah, focus on the v2. We can add some notes about the old one later.

For module forbidder, can you open a new issue at https://github.com/codewars/python-test-framework?

from docs.

Blind4Basics avatar Blind4Basics commented on August 27, 2024

done

is that repo the last version? (I believe not?) I'd like to have the code on hand so that I can check what I write about it. XD

from docs.

kazk avatar kazk commented on August 27, 2024

Yeah, it's the version being used on Codewars.

from docs.

Blind4Basics avatar Blind4Basics commented on August 27, 2024

👍

from docs.

Blind4Basics avatar Blind4Basics commented on August 27, 2024

how do I integrate an picture...? :/

from docs.

Blind4Basics avatar Blind4Basics commented on August 27, 2024

#18

This part is complete about the content except for:

  • the picture
  • the module forbidder

Tho, I forgot about the headers specific to docs.codewars

from docs.

kazk avatar kazk commented on August 27, 2024

Can you move the files?

  • document to content/languages/python/codewars-test-famework/index.md
  • image to content/languages/python/codewars-test-framework/python-test-framework-example.png

Then, use the image in the Markdown. ![Python Test Framework Example](./python-test-framework-example.png).

Also, add frontmatter to Markdown so that it shows up on the Python page and navigations are added.

---
category: references
languages: [python]
tags:
  - testing
sidebar: "language:python"
prev: /languages/python/
---

from docs.

Blind4Basics avatar Blind4Basics commented on August 27, 2024

Ok, I'll see that tomorrow. I really need to sleep, right now.

cheers

from docs.

hobovsky avatar hobovsky commented on August 27, 2024

On structuring the test suite with describe/it:

Assertions directly in describe should be avoided. It happens to work at the moment, but it's awkward.
Top-level it should be fine. Many test frameworks don't have describe.
Top-level assertions are strongly discouraged.

So describe -> it -> assertions best, it -> assertions ok, describe -> assertions bad, assertions bad.

from docs.

hobovsky avatar hobovsky commented on August 27, 2024

Created an issue dedicated to the guide here: #191.

from docs.

hobovsky avatar hobovsky commented on August 27, 2024

@kazk now #191 and #197 are done, do you consider anything more necessary in scope of this issue, or can it be closed?

from docs.

kazk avatar kazk commented on August 27, 2024

This can be closed. Thanks everyone, for writing them.

from docs.

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.