Skip to content

Moving blog samples to py.test #195

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

Merged
merged 1 commit into from
Feb 19, 2016
Merged
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
12 changes: 4 additions & 8 deletions blog/introduction_to_data_models_in_cloud_datastore/blog_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@
# limitations under the License.

from blog import main
import pytest
from testing import CloudTest
from testing import mark_flaky


@pytest.mark.slow
class BlogTestCase(CloudTest):
"""Simple test case that ensures the blog code doesn't throw any errors."""

def test_main(self):
main(self.config.GCLOUD_PROJECT)
@mark_flaky
def test_main(cloud_config):
main(cloud_config.GCLOUD_PROJECT)
13 changes: 4 additions & 9 deletions blog/introduction_to_data_models_in_cloud_datastore/wiki_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.


import pytest
from testing import CloudTest
from testing import mark_flaky
from wiki import main


@pytest.mark.slow
class WikiTestCase(CloudTest):
"""Simple test case that ensures the wiki code doesn't throw any errors."""

def test_main(self):
main(self.config.GCLOUD_PROJECT)
@mark_flaky
def test_main(cloud_config):
main(cloud_config.GCLOUD_PROJECT)