This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
public class SortStrings { | |
/** | |
* We'll do a basic bubble sort,. | |
* @param array | |
*/ | |
public static void MySort(String array[]) { | |
String tempWord; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
public class SortStrings { | |
/** | |
* We'll do a basic bubble sort,. | |
* @param array | |
* @param n | |
*/ | |
public static void MySort(String array[], int n) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> $$('a.fl.clear') | |
[a.fl /headpin...org_id=1, a.fl /headpin...org_id=2] | |
---firebug copy html --- | |
<a title="ACME_Corporation" rel="nofollow" data-method="POST" class="fl clear" href="/headpin/user_session/set_org?org_id=1">ACME_Corporation</a> | |
<a title="Test" rel="nofollow" data-method="POST" class="fl clear" href="/headpin/user_session/set_org?org_id=2">Test</a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---- from locators.py ---- | |
login_org_selector = (By.CSS_SELECTOR, "a.fl") | |
login_org_dropdown = (By.CSS_SELECTOR, "div.one-line-ellipsis") | |
---- | |
def select_org(self, value='ACME_Corporation'): | |
self.click(*login_org_dropdown) | |
time.sleep(2) | |
for org in self.selectable_orgs: | |
if value in org.name: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bugzilla | |
import ConfigParser | |
import pytest | |
import os | |
""" | |
This plugin integrates pytest with bugzilla; allowing the tester to | |
mark a test with a bug id. The test will then be skipped until the bug | |
status is no longer NEW, ON_DEV, or ASSIGNED. | |
You must set the url either at the command line or in bugzilla.cfg. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bugzilla | |
import ConfigParser | |
import pytest | |
""" | |
This plugin integrates pytest with bugzilla; allowing the tester to | |
mark a test with a bug id. The test will then be skipped until the bug | |
status is no longer NEW, ON_DEV, or ASSIGNED. | |
You must set the url either at the command line or in bugzilla.cfg. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------------------------------------------ | |
/usr/bin/pip-python run on Fri Jun 15 13:48:16 2012 | |
Downloading/unpacking pytest-marker-bugzilla | |
Getting page http://pypi.python.org/simple/pytest-marker-bugzilla | |
URLs to search for versions for pytest-marker-bugzilla: | |
* http://pypi.python.org/simple/pytest-marker-bugzilla/ | |
Getting page https://github.com/eanxgeek/pytest_marker_bugzilla.git | |
Analyzing links from page http://pypi.python.org/simple/pytest-marker-bugzilla/ | |
Skipping link https://github.com/eanxgeek/pytest_marker_bugzilla.git (from http://pypi.python.org/simple/pytest-marker-bugzilla/); unknown archive format: .git | |
Analyzing links from page https://github.com/eanxgeek/pytest_marker_bugzilla |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bugzilla | |
import ConfigParser | |
import pytest | |
class BugzillaHooks(object): | |
def __init__(self, config, bugzilla): | |
self.config = config | |
self.bugzilla = bugzilla |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bugzilla | |
import ConfigParser | |
class BugzillaHooks(object): | |
def __init__(self, config, bugzilla): | |
self.config = config | |
self.bugzilla = bugzilla | |
def pytest_runtest_makereport(self, __multicall__, item): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BugzillaHooks(object): | |
def __init__(self, config, bugzilla): | |
self.config = config | |
self.bugzilla = bugzilla | |
def pytest_runtest_makereport(self, __multicall__, item): | |
if isinstance(item, item.Function): | |
func = item.obj | |
bugzilla_marker = getattr(func, "bugzilla", None) |