Code Monkey home page Code Monkey logo

Comments (4)

spooning avatar spooning commented on May 10, 2024

Originally submitted to Google Code by @pekkaklarck on 6 Jul 2008

This is clearly a bug and it occurs also in 2.0 version. A simple fix is replacing
the highlighted print statement e.g. with

print 'Appending value %s' % str(value)

I took a quick look at the source code of Collections library and noticed that most
keywords there do not log what they are doing. Instead of just fixing the reported
issue it's better to go through all the keywords and add unified logging. It might be
that the default level is better to be DEBUG since list/dictionary operations may
involve a lot of entries. Anyway, logging should be handled by internal helper method
so that the default level is easy to change.

Additionally noticed that some of the keyword docs in Collections library have lines
longer than 78 chars. This ought to be fixed as well.

These issues will be fixed in next released version regardless is it 2.1 or 2.0.1.

from robotframework.

spooning avatar spooning commented on May 10, 2024

Originally submitted to Google Code by @pekkaklarck on 21 Jul 2008

To be implemented in 2.0.1 version.

from robotframework.

spooning avatar spooning commented on May 10, 2024

Originally submitted to Google Code by @pekkaklarck on 23 Jul 2008

I fixed logging (i.e. the print statement) simply by removing it. At the same time I
also did a little cleanup, mainly for documentation. Committed in r385.

I'm not sure should keywords in Collections library log what they are doing or not.
Adding logging is anyway out of the scope of 2.0.1, and I added a new issue 50 for it.

from robotframework.

spooning avatar spooning commented on May 10, 2024

Originally submitted to Google Code by @pekkaklarck on 24 Aug 2008

I noticed that there were several other keywords in Collections library that did not
work with non-string items. Affected keywords were:

Dictionaries Should Be Equal
Dictionary Should Contain Sub Dictionary
List Should Contain Sub List

These keywords failed because they had code like:

diffs = [value for value in L2 if not L1.count(value) > 0 ]
error = ', '.join(diffs)

This fails when 'diffs' contains non-strings because 'join' expects a list of strings
as arguments. Acceptance tests only used lists with strings and dictionaries with
strings as keys and thus they didn't found the problem.

These keywords were fixed in r503 and tests/docs committed in r504. Fixes are
included to 2.0.1.

from robotframework.

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.