Git Product home page Git Product logo

Comments (4)

yakky avatar yakky commented on August 11, 2024

Move the assert from test_whitespace_project_path to test_whitespace_project_path, we can safely remove it

from djangocms-installer.

henning avatar henning commented on August 11, 2024

I dont understand the first part - move from X to X?
Am 05.11.2013 10:36 schrieb "Iacopo Spalletti" [email protected]:

Move the assert from test_whitespace_project_path to
test_whitespace_project_path, we can safely remove it


Reply to this email directly or view it on GitHubhttps://github.com//issues/38#issuecomment-27762580
.

from djangocms-installer.

yakky avatar yakky commented on August 11, 2024

Sorry, typo! :)
I meant from test_whitespace_project_path to test_invalid_project_path
Assertion at https://github.com/nephila/aldryn-installer/blob/master/tests/config.py#L152 is different from the one at test_invalid_project_path and both are needed, but they can easily merged into one test

from djangocms-installer.

henning avatar henning commented on August 11, 2024

I see that extra assertion that is the difference between the two methods, but looking clearly at them - the assertion in the whitespace method just can not work!

It checks for a variable that cannot and must not exist as it's set with a statement that we ant to lead to an exception - that's what we test for.

The only reason why the whitespace test method doesn't lead to an error is because the assertion is never executed because an Exception happens before it comes to the execution.

from djangocms-installer.

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.