Skip to content

Instantly share code, notes, and snippets.

View els-pnw's full-sized avatar

Eric Sammons els-pnw

View GitHub Profile
import java.io.*;
public class SortStrings {
/**
* We'll do a basic bubble sort,.
* @param array
*/
public static void MySort(String array[]) {
String tempWord;
@els-pnw
els-pnw / SortStrings.java
Created August 16, 2012 22:44
the program
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) {
>>> $$('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>
@els-pnw
els-pnw / page.py
Created August 15, 2012 13:49
source
---- 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:
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.
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.
------------------------------------------------------------
/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
import bugzilla
import ConfigParser
import pytest
class BugzillaHooks(object):
def __init__(self, config, bugzilla):
self.config = config
self.bugzilla = bugzilla
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):
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)