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

Testdata serve on the command line #33

Open
Jaymon opened this issue Sep 28, 2018 · 1 comment
Open

Testdata serve on the command line #33

Jaymon opened this issue Sep 28, 2018 · 1 comment

Comments

@Jaymon
Copy link
Owner

Jaymon commented Sep 28, 2018

Pull out our testing api code that passes through testdata stuff to the client, add a function that takes the string value and finds the function and then normalizes the input

Basically, by running 'testdata serve' on the command line you can bring up an api that will pass through what you send up to testdata and return it as json, so you have an easy way for clients to use testdata also.

@Jaymon
Copy link
Owner Author

Jaymon commented May 27, 2019

Print out all the available commands

$ testdata --help

print out the help information (get the docblock and argument list using reflection):

$ testdata get_ascii --help

actually call something:

$ testdata create_file path="..." contents="" tmpdir="" encoding=""
$ testdata create_file "path" "contents" "tmpdir" "encodings"

It should print out what is returned, so with create_file it will return the file path.

There are certain calls that make no sense being available on the commandline like the mock_* functions, but I think this would be a really handy interface to have available

Jaymon added a commit that referenced this issue Feb 8, 2024
… on a few frontend things and I wanted to have access to testdata methods to generate random data. This is the first step for issue #33
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

No branches or pull requests

1 participant