-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #136 from napalm-automation/pytest
Pytest
- Loading branch information
Showing
16 changed files
with
354 additions
and
42 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# -*- coding: utf-8 -*- | ||
''' | ||
Python 2-3 compatibility. | ||
''' | ||
from __future__ import absolute_import | ||
from __future__ import unicode_literals | ||
|
||
import sys | ||
|
||
PY2 = sys.version_info[0] == 2 | ||
PY3 = sys.version_info[0] == 3 | ||
|
||
if PY3: | ||
string_type = str | ||
text_type = str | ||
binary_type = bytes | ||
else: | ||
string_type = basestring | ||
text_type = unicode | ||
binary_type = str |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
-r requirements.txt | ||
coveralls | ||
pytest | ||
pytest-cov | ||
pytest-json | ||
pytest-pythonpath | ||
pytest-travis-fold | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[pytest] | ||
log_format = %(asctime)s,%(msecs)03.0f [%(name)-17s][%(levelname)-8s] %(message)s | ||
log_date_format = %Y-%m-%d %H:%M:%S | ||
addopts = -v --cov=napalm_logs --cov-report | ||
json_report = report.json | ||
jsonapi = true |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIDsDCCApgCCQCD5IOMa6tvajANBgkqhkiG9w0BAQsFADCBmTELMAkGA1UEBhMC | ||
EzARBgNVBAoMCkNsb3VkZmxhcmUxDDAKBgNVBAsMA05FVDEUMBIGA1UEAwwLTkFQ | ||
QUxNIGxvZ3MxJDAiBgkqhkiG9w0BCQEWFW1pcmNlYUBjbG91ZGZsYXJlLmNvbTAe | ||
Fw0xNzA0MjExMTU5NDNaFw0xODA0MjExMTU5NDNaMIGZMQswCQYDVQQGEwJVSzEX | ||
MBUGA1UECAwOR3JlYXRlciBMb25kb24xEjAQBgNVBAcMCUdyZWVud2ljaDETMBEG | ||
A1UECgwKQ2xvdWRmbGFyZTEMMAoGA1UECwwDTkVUMRQwEgYDVQQDDAtOQVBBTE0g | ||
bG9nczEkMCIGCSqGSIb3DQEJARYVbWlyY2VhQGNsb3VkZmxhcmUuY29tMIIBIjAN | ||
BgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA3DRM7FYARhsU2/rPR7eGORR3qt1x | ||
Z00ZjYesbPGsXMSCEvFvXe84QR/a/xUvar0fNuCeLBx9xSojYXzuTTbv5+R5m5Mq | ||
FiXwAKOnWROHOx3FMuVF1hBFpM88CmpTT1exxy1y91NlrQc4cZp9X5W9I4Ir6yjq | ||
gA8ZB57vlxXd5qToanKuh2KGfk2P5NygQcd56VnOylfc4MTsWt5GMgU4unrA7wDq | ||
NcDqmd9o7TjFN55cC13KyrjQElt+g5EUD9zCvqvIRKgHkwHhHb6uXf6selOdLTfR | ||
JzmZRZJBLBnrUaGaXwUCGyQNtPq+winaEYv7xdz5OJP3ktsctO0ZWBn3CQIDAQAB | ||
MA0GCSqGSIb3DQEBCwUAA4IBAQBWSBIOHzCVVHRi6Pn/QlB61vK5vmCgOHVhWc0I | ||
FjK8/EplvGUQ8gOUPTjPBoICvDVTTD3YJaVy4gNpNRuX0K6/RtufwJyhdbCAE9Rt | ||
ROy7kolwXNc9wkIAqF3TvwCYOMYWGewq98R4cFClESG4Uy+u4TgqsGDTjNzussWD | ||
GGfhib6yh79A26xM70AQAKYDl3aaNBunLGXwBUPSMvQXN5rNL+4hAuO43pmO7Btg | ||
EnQq6jTrjaQnzIc1fabXSWTdA0cSDQUglCuDyYiPqeZnJlANcWOfK/grEt6vt3Tf | ||
O1GRSoEzOUdCJ8rbFFLubJVmIIvtjUANlGDQVfZdpyFLGxAy | ||
-----END CERTIFICATE----- |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
-----BEGIN RSA PRIVATE KEY----- | ||
MIIEpAIBAAKCAQEA3DRM7FYARhsU2/rPR7eGORR3qt1xZ00ZjYesbPGsXMSCEvFv | ||
Xe84QR/a/xUvar0fNuCeLBx9xSojYXzuTTbv5+R5m5MqFiXwAKOnWROHOx3FMuVF | ||
1hBFpM88CmpTT1exxy1y91NlrQc4cZp9X5W9I4Ir6yjqgA8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Ud82WRGiM6q | ||
12cBrDD1ljQquBQF/nq5fmECgYEA2HDWr4qrFzgSSuyPXMFMx9h/a/4cVOe+4hPd | ||
SoKfw/O0DD9Ro0zHjeUt+gHKuA/vXbfUygxAOOo2GkCkZv3BpmyeYuCNQK+UIIIq | ||
maswKQyoMGzoE49WE433X7bTSk+kHE6aKdan6Bq3rpB5+WHB+LHV/ebkLs+g+O+7 | ||
ZpXDx1kCgYB9qLGbvgNrl5vS54g9n/Zd6qrRTPuW84UWK84W3cyghxSJTuBMQy6R | ||
cvQGhBgTdPG6J/5I0afewu9xLVdQOiLDzIhbjB3SXk+x0wk3f8649HW3vIo4nNsI | ||
0juQnYvK3G4x7g+N42V/af6pAcojvAGbVX1rKCqzGdrgUHwVcUU+wA== | ||
-----END RSA PRIVATE KEY----- |
Oops, something went wrong.