Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement backward compatiblility #44

Merged
merged 1 commit into from
Sep 22, 2014
Merged

Implement backward compatiblility #44

merged 1 commit into from
Sep 22, 2014

Conversation

Ichimonji10
Copy link
Contributor

Create a class FauxFactory. Provide it with a set of public class methods and
make them call the equivalent new-style functions. Also provide a codify
function that wraps the new _make_unicode function.

Provide a basic set of sanity tests for these wrappers.

Do not alter the module-wide variable __all__. This prevents the compatiblity
code from showing up in Sphinx-generated documentation or being imported by
from fauxfactory import *.

Create a class `FauxFactory`. Provide it with a set of public class methods and
make them call the equivalent new-style functions. Also provide a `codify`
function that wraps the new `_make_unicode` function.

Provide a basic set of sanity tests for these wrappers.

Do not alter the module-wide variable `__all__`. This prevents the compatiblity
code from showing up in Sphinx-generated documentation or being imported by
`from fauxfactory import *`.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) when pulling 7f85158 on Ichimonji10:backwards-compatibility into 0990fc6 on omaciel:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) when pulling bcb9416 on Ichimonji10:backwards-compatibility into 0990fc6 on omaciel:master.

@omaciel
Copy link
Owner

omaciel commented Sep 22, 2014

Still no Internet at home but thank you for doing this! I actually started playing with the compatibility class by creating a dumb class, then importing all methods from the module itself and adding them to the class (setattr with classmethod(method_name)) if the function name started with generate_ but I think I missed something and decided to look into it later :)

@omaciel
Copy link
Owner

omaciel commented Sep 22, 2014

ACK

omaciel added a commit that referenced this pull request Sep 22, 2014
@omaciel omaciel merged commit 8c9d786 into omaciel:master Sep 22, 2014
@Ichimonji10 Ichimonji10 deleted the backwards-compatibility branch September 23, 2014 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants