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

if number_of_methods >= MAX_NUMBER_OF_METHODS, it will not display data #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ nosetests.xml
.mr.developer.cfg
.project
.pydevproject
VENV

.DS_Store

Expand Down
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
History
=======

0.3.4
----------------

- if number_of_methods >= MAX_NUMBER_OF_METHODS, it will not display data

0.3.3
----------------

Expand Down
2 changes: 1 addition & 1 deletion mock_server/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.3.3"
__version__ = "0.3.4"
1 change: 1 addition & 0 deletions mock_server/static/vendor/jquery/js/jquery.min.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion mock_server/templates/list_resources.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ <h2 id="{{category}}">{% if category == "__default" %}Not in category{% else %}{
{% end %}
{% for i, file in enumerate(resource.files) %}
<div id="{{resource.method}}{{path.id}}{{file.status_code}}{{i}}" class="{% if resource.description %}ppp {% end %}tab-pane{% if i == 0 %} active{% end %}">
<pre class="prettyprint linenums">{{file.data}}</pre>
<pre class="prettyprint linenums" {% if number_of_methods >= MAX_NUMBER_OF_METHODS %} style="display: none"{% end %}>{{file.data}}</pre>
<pre class="prettyprint">
curl {% if protocol == 'https' %}-k {% end %}-v -X {{resource.method}} {{protocol}}://{{request.host}}/{{resource.url_path}}{% if file.status_code != "200" %}?__statusCode={{file.status_code}}{% end %}
</pre>
Expand Down